You've already forked ansible-role-common
Set NetworkManager to not overwrite resolv.conf
This commit is contained in:
@@ -71,6 +71,15 @@
|
|||||||
- Restart NTPD
|
- Restart NTPD
|
||||||
- Restart SSH
|
- Restart SSH
|
||||||
tags: dns
|
tags: dns
|
||||||
|
|
||||||
|
- name: Ensure NetworkManager does not fiddle DNS
|
||||||
|
ini_file:
|
||||||
|
dest: /etc/NetworkManager/NetworkManager.conf
|
||||||
|
section: "main"
|
||||||
|
option: "dns"
|
||||||
|
value: "none"
|
||||||
|
backup: yes
|
||||||
|
when: (ansible_os_family == "RedHat" and ansible_distribution_major_version == "7")
|
||||||
|
|
||||||
- name: Ensure hosts file correct
|
- name: Ensure hosts file correct
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|||||||
Reference in New Issue
Block a user