Closed sgommaraschi closed 12 months ago
I generally recommend people install Ansible via Pip: pip3 install ansible
, and this gives you all the necessary collections.
Unfortunately, there's no way to identify collection dependencies from within roles, so if you want to install just ansible-core without full Ansible, you will need to install the appropriate collections as well.
Thanks for clarification..
Another problem now on installation on Red Hat Enterprise Linux release 9.0 (Plow)
TASK [geerlingguy.docker : Install Docker packages (with downgrade option).] **** fatal: [thxprdlsboxhub01.internal.unicreditgroup.eu]: FAILED! => {"changed": false, "failures": [], "msg": "Depsolve Error occurred: \n Problem: problem with installed package buildah-1:1.26.2-1.el9_0.x86_64\n - package buildah-1:1.26.2-1.el9_0.x86_64 requires runc >= 1.0.0-26, but none of the providers can be installed\n - package buildah-1:1.24.2-4.el9_0.x86_64 requires runc >= 1.0.0-26, but none of the providers can be installed\n - package containerd.io-1.6.10-3.1.el9.x86_64 conflicts with runc provided by runc-4:1.1.3-2.el9_0.x86_64\n - package containerd.io-1.6.10-3.1.el9.x86_64 obsoletes runc provided by runc-4:1.1.3-2.el9_0.x86_64\n - package containerd.io-1.6.10-3.1.el9.x86_64 conflicts with runc provided by runc-3:1.1.0-2.el9.x86_64\n - package containerd.io-1.6.10-3.1.el9.x86_64 obsoletes runc provided by runc-3:1.1.0-2.el9.x86_64\n - cannot install the best candidate for the job", "rc": 1, "results": []}
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.
Ansible version => ansible [core 2.12.2] Package => ansible-core-2.12.2-4.el8_6.x86_64
TASK [geerlingguy.docker : Load OS-specific vars.] ** ok: [HOST] => {"ansible_facts": {}, "ansible_included_var_files": ["/usr/share/ansible/roles/geerlingguy.docker/vars/main.yml"], "changed": false}
TASK [geerlingguy.docker : include_tasks] *** fatal: [HOST]: FAILED! => {"reason": "couldn't resolve module/action 'ini_file'. This often indicates a misspelling, missing collection, or incorrect module path.\n\nThe error appears to be in '/usr/share/ansible/roles/geerlingguy.docker/tasks/setup-RedHat.yml': line 23, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Configure Docker Nightly repo.\n ^ here\n"}
Googling seems that this module is out of ansible-core package
https://docs.ansible.com/ansible/latest/collections/community/general/ini_file_module.html _
_
So I run
ansible-galaxy collection install community.general -p /usr/share/ansible/roles
After installation of community.general collection it works