I used the command module and that seems to have let it get installed.

Thanks,
Harry

On Thursday, January 11, 2024 at 10:27:50 AM UTC-5 Dick Visser wrote:

> I don't know, but this sounds more like a RHEL issue than an ansible 
> issue...
>
>
> On Thu, 11 Jan 2024 at 15:41, [email protected] <[email protected]> wrote:
>
>> 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
>>
>> -- 
>> 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 [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/3eab5eec-d57f-4752-a9e0-3ccb55d591e4n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/3eab5eec-d57f-4752-a9e0-3ccb55d591e4n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/acaa9b9c-ef5b-415c-9189-d081863fe0dbn%40googlegroups.com.

Reply via email to