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

Playbook failing due to missing make module #42

Closed
varad-ahirwadkar opened this issue Feb 9, 2023 · 2 comments
Closed

Playbook failing due to missing make module #42

varad-ahirwadkar opened this issue Feb 9, 2023 · 2 comments

Comments

@varad-ahirwadkar
Copy link
Contributor

Ansible playbook fails when role requires make module or using playbooks/main.yaml (checks all the roles).

RHEL 9 using Ansible [core 2.13.3] which does not have make module. It requires collection community.general which include make module.

# ansible --version
ansible [core 2.13.3]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.9/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.9.14 (main, Nov  7 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)]
  jinja version = 3.1.2
  libyaml = True

# ansible-galaxy collection list 
# /root/.ansible/collections/ansible_collections
Collection       Version
---------------- -------
ansible.posix    1.5.1
community.crypto 2.10.0
kubernetes.core  2.4.0

# ansible-doc make
[WARNING]: module make not found in:
/root/.ansible/plugins/modules:/usr/share/ansible/plugins/modules:/usr/lib/python3.9/site-packages/ansible/modules

https://www.redhat.com/en/blog/updates-using-ansible-rhel-86-and-90

As previously noted, RHEL 8.6 and RHEL 9.0 will introduce Ansible Core (ansible-core package) to replace Ansible Engine (ansible package). Ansible Core provides significantly fewer Ansible plugins and modules than Ansible Engine.

Workaround :
Install collection community.general:

ansible-galaxy collection install community.general
@yussufsh
Copy link
Contributor

Can we add this to the README or some doc and close this issue?

@varad-ahirwadkar
Copy link
Contributor Author

I will add this in the README.

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