Managing /etc/resolv.conf with Ansible
Good Morning,
we would like to manage the /etc/resolv.conf with ansible. But currently the file is generated by NetworkManager.
[root@rhel-t2 ~]# cat /etc/resolv.conf # Generated by NetworkManager search sub.exampelcom example.com nameservernameserver
My guess is that the NetworkManager generates this file because I use the
DNS1DNS2PEERDNS=noWhat would be the best way to get /etc/resolv.conf under the control of ansible? My first thought was to simply stop using the
DNS1DNS2What do you think about it? Do you have any other ideas on how to do this?
Best regards,
Joerg
Responses