You've already forked ansible-role-common
Set NetworkManager to not overwrite resolv.conf
This commit is contained in:
@@ -72,6 +72,15 @@
|
||||
- Restart SSH
|
||||
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
|
||||
lineinfile:
|
||||
dest: /etc/hosts
|
||||
|
||||
Reference in New Issue
Block a user