feat(ansible): remove search domain from /etc/resolv.conf

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2023-11-21 10:12:48 -05:00
1 parent 3ab157eb23
commit fde77c3f9e
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