ansible-config_encoder_filters icon indicating copy to clipboard operation
ansible-config_encoder_filters copied to clipboard

installation with ansible-galaxy - collection

Open weakcamel opened this issue 3 years ago • 2 comments

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.
$

weakcamel avatar May 06 '22 10:05 weakcamel

use it as a role :)

roles:
- src: https://github.com/jtyr/ansible-config_encoder_filters.git
  name: config_encoder_filters

leasley199 avatar Dec 19 '22 17:12 leasley199