Open patzm opened 2 years ago
It's on the todo list!
I've just tried to make the module installable via ansible-galaxy, but I'm running into some roadblocks that I'm not sure how to solve. Specifically, after installing the module via ansible-galaxy the following tasks now longer works as they used to:
- set_fact:
ansible_facts:
pkg_mgr: yay
- package:
name: any-package-name
become: true
I get the following error:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NoneType: None
fatal: [tecopa]: FAILED! => changed=false
msg: Could not find a module for yay.
I've tried using the fully qualified name, importing the module as a role, as a collection, all with the same result. Does anyone have an idea how one can build an ansible-galaxy installed collection that can be used as a an ansible package manager?.
If you're curious to try and debug, unrevert the last two commits and the repo should be installable as a local ansible-galaxy package via:
ansible-galaxy collection install <path to local checkout of this repo>
I also got errors trying to install via ansible-galaxy:
$ ansible-galaxy role install mnussbaum.ansible_yay
Starting galaxy role install process
- downloading role 'ansible_yay', owned by mnussbaum
- downloading role from https://github.com/mnussbaum/ansible-yay/archive/master.tar.gz
[WARNING]: - mnussbaum.ansible_yay was NOT installed successfully: this role does not appear to have a meta/main.yml file.
Not that I'm installing mnussbaum.ansible_yay
with an underscore instead of a hyphen (as suggested in the README), as this corresponds to the ansible galaxy url.
hi, did you consider making this available through the ansible-galaxy?