ansible: Remove group read access to netplan configuration files
authorKienan Stewart <kstewart@efficios.com>
Fri, 9 Aug 2024 14:08:39 +0000 (10:08 -0400)
committerKienan Stewart <kstewart@efficios.com>
Fri, 9 Aug 2024 14:08:39 +0000 (10:08 -0400)
Netplan warns that the configuration files shouldn't be group readable
when running `netplan apply`. This change will silence that warning.

Change-Id: I3d390f5626f92760e2a4ab7690f9c63b64ef639b
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/roles/netplan/tasks/main.yml

index 2bef5d8e22faf06003cfaba9305d6b3f1eadfb71..902a1e127f1a89519a18c2c6a0a775aea87f647d 100644 (file)
@@ -10,7 +10,7 @@
         dest: /etc/netplan/default.yaml
         owner: root
         group: root
-        mode: '0640'
+        mode: '0600'
       register: netplan_default_yaml
     - name: Disable ifupdown on Debian
       when: ansible_distribution == "Debian"
This page took 0.023428 seconds and 4 git commands to generate.