diff --git a/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 b/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 index 202b6fa7..1066dd3b 100644 --- a/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 +++ b/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 @@ -9,7 +9,7 @@ ansible.builtin.pause: seconds: 5 - name: Populate service facts - service_facts: + ansible.builtin.service_facts: tasks: - name: Locale block: @@ -73,6 +73,10 @@ regexp: ManageForeignRoutes line: ManageForeignRoutes=no # https://github.com/onedr0p/flux-cluster-template/discussions/635 + - name: Network Configuration | Remove immutable flag from /etc/resolv.conf + ansible.builtin.file: + attributes: -i + path: /etc/resolv.conf - name: Network Configuration | Remove /etc/resolv.conf ansible.builtin.file: attributes: -i @@ -81,7 +85,7 @@ - name: Network Configuration | Add custom /etc/resolv.conf ansible.builtin.copy: attributes: +i - mode: 644 + mode: '0644' dest: /etc/resolv.conf content: | search .