Set NetworkManager to not overwrite resolv.conf

This commit is contained in:
2016-11-11 12:45:41 +13:00
parent 750d49a72b
commit 0b13e0e9df

View File

@@ -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: