Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation with ansible-galaxy - collection #18

Open
weakcamel opened this issue May 6, 2022 · 1 comment
Open

installation with ansible-galaxy - collection #18

weakcamel opened this issue May 6, 2022 · 1 comment

Comments

@weakcamel
Copy link

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
Copy link

use it as a role :)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants