fix: change attribute before deleting the file

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2023-12-03 17:20:00 -05:00
1 parent 6547d8277e
commit e660fbaa1e
1 file changed
+2 -1
@@ -75,9 +75,10 @@
# https://github.com/onedr0p/flux-cluster-template/discussions/635 # https://github.com/onedr0p/flux-cluster-template/discussions/635
- name: Network Configuration | Remove /etc/resolv.conf - name: Network Configuration | Remove /etc/resolv.conf
ansible.builtin.file: ansible.builtin.file:
attributes: -i
path: /etc/resolv.conf path: /etc/resolv.conf
state: absent state: absent
- name: Network Configuration | Remove search domain - name: Network Configuration | Add custom /etc/resolv.conf
ansible.builtin.copy: ansible.builtin.copy:
attributes: +i attributes: +i
mode: 644 mode: 644