From 77b5fc2b0b4155996ed59e591c90a8fe9d98f7b2 2025-03-15 01:14:13 From: x Date: 2025-03-15 01:14:13 Subject: [PATCH] fix: resolv.conf overwriting error because of default immutable attribute --- diff --git a/gateway/initial_gw_setup.yml b/gateway/initial_gw_setup.yml index c6aaa37c4b2d72149defa691da027128289e110d..b6e64ce15b10b62b1d6c5f1cbd5f2f108925d475 100644 --- a/gateway/initial_gw_setup.yml +++ b/gateway/initial_gw_setup.yml @@ -51,6 +51,11 @@ group: root mode: "0644" tags: config + - name: Remove immutable attribute on resolv.conf + ansible.builtin.file: + dest: /etc/resolv.conf + attributes: '-i' + tags: config - name: Create a symbolic link for resolv.conf, replacing the initial resolv.conf ansible.builtin.file: src: /run/systemd/resolve/resolv.conf