ansible-config_encoder_filters
ansible-config_encoder_filters copied to clipboard
installation with ansible-galaxy - collection
More a question: how can one install this filter as a collection?
https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#installing-collections-with-ansible-galaxy
$ cat requirements_filter.yml
---
collections:
- src: https://github.com/jtyr/ansible-config_encoder_filters.git
name: jtyr.config_encoder_filters
$ ansible-galaxy install -r requirements_filter.yml
Starting galaxy collection install process
Process install dependency map
ERROR! Failed to resolve the requested dependencies map. Could not satisfy the following requirements:
* jtyr.config_encoder_filters:* (direct request)
$ cat requirements_filter.yml
---
collections:
- src: https://github.com/jtyr/ansible-config_encoder_filters.git
$ ansible-galaxy install -r requirements_filter.yml
ERROR! Neither the collection requirement entry key 'name', nor 'source' point to a concrete resolvable collection artifact. Also 'name' is not an FQCN. A valid collection name must be in the format <namespace>.<collection>. Please make sure that the namespace and the collection name contain characters from [a-zA-Z0-9_] only.
$
use it as a role :)
roles:
- src: https://github.com/jtyr/ansible-config_encoder_filters.git
name: config_encoder_filters