From f290fa2b2c3c5daf67d0ca5821a2d5ae5afb8f33 2025-08-23 23:09:51 From: xbr Date: 2025-08-23 23:09:51 Subject: [PATCH] fix: overwriting error because of default immutable attribute --- diff --git a/gateway/initial_gw_setup.yml b/gateway/initial_gw_setup.yml index c6aaa37c4b2d72149defa691da027128289e110d..b71825a814fc4bcb16c20782c83c1b430fff5ed0 100644 --- a/gateway/initial_gw_setup.yml +++ b/gateway/initial_gw_setup.yml @@ -51,6 +51,12 @@ group: root mode: "0644" tags: config + - name: Remove immutable attribute on resolv.conf + ansible.builtin.file: + dest: /etc/resolv.conf + attributes: '-i' + become: true + tags: config - name: Create a symbolic link for resolv.conf, replacing the initial resolv.conf ansible.builtin.file: src: /run/systemd/resolve/resolv.conf @@ -58,7 +64,9 @@ owner: root group: root state: link + attributes: '-i' force: true + become: true tags: config - name: Start systemd-resolved ansible.builtin.service: