Re: ansible dnf with stream

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 25/12/2020 11:30, Łukasz Posadowski wrote:

Hi Lukasz,

> The task in question is:
> 
>   - name: Install basic packages on RedHat-like systems.
>     dnf:
>       name:
>       - bash-completion
>       - htop
>       - mc
>       - vim
>       - mtr
>       - tree
>       - net-tools 
>       state: latest
>       enablerepo: epel-modular, epel
>     when: ansible_os_family == 'RedHat'

I haven't tested, but my instinct points at the "enablerepo" line.
You've written "epel-modular, epel" with a space. YAML preserves the
space, and passes it to dnf, and perhaps it's causing a problem. Can you
try it without the space?

Regards,
Anand
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux