Changeset - f290fa2b2c3c
[Not reviewed]
0 1 0
x - 23 hours ago 2025-08-23 23:09:51
xbr@c3l.lu
fix: overwriting error because of default immutable attribute
1 file changed with 8 insertions and 0 deletions:
0 comments (0 inline, 0 general)
gateway/initial_gw_setup.yml
Show inline comments
 
@@ -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:
0 comments (0 inline, 0 general)