feat(ansible): remove search domain from /etc/resolv.conf
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 file changed
+13
@@ -72,6 +72,19 @@
|
||||
dest: /etc/systemd/networkd.conf
|
||||
regexp: ManageForeignRoutes
|
||||
line: ManageForeignRoutes=no
|
||||
# https://github.com/onedr0p/flux-cluster-template/discussions/635
|
||||
- name: Network Configuration | Remove /etc/resolv.conf
|
||||
ansible.builtin.file:
|
||||
path: /etc/resolv.conf
|
||||
state: absent
|
||||
- name: Network Configuration | Remove search domain
|
||||
ansible.builtin.copy:
|
||||
attributes: +i
|
||||
mode: 644
|
||||
dest: /etc/resolv.conf
|
||||
content: |
|
||||
search .
|
||||
nameserver 1.1.1.1
|
||||
|
||||
- name: System Configuration
|
||||
notify: Reboot
|
||||
|
||||
Reference in new issue
Block a user