Cheers Vlad, that does help! 

I couldn't work out from the github thread if the fix had been merged back 
into the code or not?  the dev mentions at the end about making sure the 
library is there.  I have installed the new library in centos8 and it makes 
no difference 
How can i easily tell if this has actually made it back into master/an 
ansible release?  it is not clear to me

NM seems to be the recommended way and where things are going so i would 
like to get this to work but obviously, i cant use the nmcli module to do 
so.
NM will still read the interface scripts and i have also tested 
/etc/networkmanager/conf.d configuration.

I didn't really want to template the /etc/sysconfig/network-scripts/ifcfg 
files... all i really want to do at this stage is ensure DNS configuration 
is consistent across all servers and can be updated easily.
this would require:
1. Managing the directives DNS# in the interface scripts.  Adding/updating 
entries could be prone to error
2. Adding this config to /etc/networkmanager/conf.d/dns.conf ( this could 
be a template )



On Friday, 7 February 2020 17:23:09 UTC+8, Vladimir Botka wrote:
>
> On Thu, 6 Feb 2020 19:03:07 -0800 (PST) 
> matzuba <[email protected] <javascript:>> wrote: 
>
> > I am trying to use the nmcli module to set DNS server and other network 
> > related configuration rather than using templates 
> > *Is it still broken?  should i give up on this module?* 
> > the module dependencies mention an old library which i believe is no 
> longer 
> > avail on centos8 - https://github.com/ansible/ansible/issues/64646 
>
> Yes. Probably it'll be fixed in 2.10. See 
> "nmcli: Add compatibility for new networkmanager library #65726" 
> https://github.com/ansible/ansible/pull/65726 
>
> FWIW. Meanwhile (or for as long as you want), to configure CentOS8 network 
> by 
> Ansible you might be better off by disabling NM and configuring deprecated 
> network-scripts. See 
> "How to Disable NetworkManager in CentOS/RHEL 8" 
>
> https://www.thegeekdiary.com/how-to-disable-networkmanager-in-centos-rhel-8/ 
> "RHEL 8 Deprecated Network Scripts" 
>
> https://unix.stackexchange.com/questions/483354/rhel-8-deprecated-network-scripts
>  
>
> HTH, 
>
>         -vlado 
>

-- 
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/9302ad81-e7f2-4c35-a655-a909d607e027%40googlegroups.com.

Reply via email to