Enable module in Ansible

69 views
Skip to first unread message

lift...@gmail.com

unread,
Jan 11, 2024, 9:41:30 AM1/11/24
to Ansible Project
I am working on a role to install Apache Guacamole.  One of the dependencies that has to be  installed is libssh2-devel, but that's not available on RHEL 8.  Google is telling me that if I install the virt-devel OS module via 'dnf module enable virt-devel',that  will allow libssh2-devel to be installed.

However, in my playbook in the role, no matter what I try, I cannot get this module to be enabled.  If I do this:

- name: Enable virt-devel module
  ansible.builtin.dnf:
    name: '@virt-devel'
    state: present

I get: "virt-devel Problems in request: broken groups or modules: virt-devel".

If I change the code to use the command module:

- name: Enable virt-devel module
  ansible.builtin.command: /bin/dnf enable module virt-devel

nothing happens in my playbook.  It doesn't fail or succeed on that play, it simply just hangs there.  So I went to the target host and ran that command manually, then enabled debug in my playbook.  When I run it again, it gets past that play with:

Updating Subscription Management repositories.
Last metadata expiration check: 0:56:53 ago on Thu 11 Jan 2024 08:41:00 AM EST.
Dependencies resolved.
Nothing to do.
Complete!

Any ideas on why this could be happening?

Thanks,
Harry

Dick Visser

unread,
Jan 11, 2024, 10:27:50 AM1/11/24
to ansible...@googlegroups.com
I don't know, but this sounds more like a RHEL issue than an ansible issue...


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3eab5eec-d57f-4752-a9e0-3ccb55d591e4n%40googlegroups.com.

lift...@gmail.com

unread,
Jan 11, 2024, 2:23:14 PM1/11/24
to Ansible Project
I used the command module and that seems to have let it get installed.

Thanks,
Harry

Reply all
Reply to author
Forward
0 new messages