Thank you  for your insight and drawin my attention to the this issue - the 
community support of modules raises some concerns for me and this is an 
example of that.  I missed that it was in preview.
RHEL/CentOS 8 is a reasonable update and there have been quite 
issues/things broken with many standard tools.  I would prefer to stick to 
the core ansible modules that have been fully tested and more likely to 
work! 

Just to clarify, i was referring to NetworkManger and not nmcli. 
NM can be configure to configure global dns in the /etc/networkmanager/conf 
files.  This could be a template
I could also disable NM from updating DNS and just make /etc/resolv.conf a 
template
It will also read the the standard /etc/sysconfig/network-scripts/ifcfg 
files, i could use lineinfile to insert/maintin the DNSX directives

Many thanks for your comments!  



On Friday, 7 February 2020 20:34:30 UTC+8, Vladimir Botka wrote:
>
> On Fri, 7 Feb 2020 02:32:12 -0800 (PST) 
> matzuba <[email protected] <javascript:>> wrote: 
>
> > [...] 
> > 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. 
> > [...] 
>
> Let me share couple of thoughts that might help you to make your choice. 
>
> The problem is the complexity. Both vertical and horizontal. Horizontal 
> across the distributions and vertical across the layers "User_land <-> 
> D-Bus 
> <-> System_configuration <-> Device_drivers". A nightmare for any 
> maintainer. 
>
> With Ansible, you connect to the remote host and escalate to root. Then 
> you 
> use nmcli, which is user-land tool, and go through D-Bus to configure the 
> system. It's an overkill. 
>
> It's not a core module. The nmcli module is maintained by community and is 
> in 
> preview. 
>
> 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/19bdff36-74b7-4590-abc5-9d4d7446a0f1%40googlegroups.com.

Reply via email to