-
Notifications
You must be signed in to change notification settings - Fork 23
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
Using Ansible collections #44
Comments
As the Is there any way to use Ansible collections other than builtin? |
This is related to issue #25 and #19. To use an Ansible Galaxy module you can copy it from the galaxy directory into your standard Ansible library directory as described in https://docs.ansible.com/ansible/latest/dev_guide/developing_locally.html. It's hugely unfortunate that this is necessary. It would be good if Suitable could use modules from the Ansible collections directories. p.s. Suitable is much more pleasant to use than the hokey Ansible YAML DSL |
@elgow I'm not really familiar with using modules from the Ansible collection. If I find myself with some spare time I'll have a look at whether or not this can be improved with a reasonable amount of effort. |
@Daverball I've been looking into it and can perhaps help out, especially with some advice along the way. I'm very impressed with how much easier it is to write scripts in Python with Suitable than it is to write in YAML. |
I suspect this was an issue with Ansible 8+ since we didn't properly initialize the importlib machinery in order for the collections installed through suitable 0.20.0 now does this correctly. Installing |
How can I use modules in the Ansible collections. I'm especially interested in using the
ansible.builtins.file
module documented at https://docs.ansible.com/ansible/latest/collections/ansible/builtin/file_lookup.htmlThe text was updated successfully, but these errors were encountered: