jtyr / ansible-config_encoder_filters

Ansible role used to deliver the Config Encoder Filters.
GNU General Public License v3.0
61 stars 16 forks source link

installation with ansible-galaxy - collection #18

Open weakcamel opened 2 years ago

weakcamel commented 2 years ago

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.
$
leasley199 commented 1 year ago

use it as a role :)

roles:
- src: https://github.com/jtyr/ansible-config_encoder_filters.git
  name: config_encoder_filters
cornfeedhobo commented 1 week ago

@jtyr can you import the newest version to ansible-galaxy and then close this issue? TIA