Accommodate changes in Debian 12: /etc/aliases, Netplan.
authorMatt Birkholz <matt@birchwood-abbey.net>
Thu, 18 Sep 2025 20:48:20 +0000 (14:48 -0600)
committerMatt Birkholz <matt@birchwood-abbey.net>
Thu, 18 Sep 2025 20:48:20 +0000 (14:48 -0600)
~webmaster~ and ~root~ was (recently?) included in the installed
=/etc/aliases=.

~gateway4~ was no longer accepted (without comment/warning?).

README.org
roles_t/core/tasks/main.yml

index 13ee28fda64ee41947aa7021f2617d274fa86312..f34008457aec2eb23c9dca127c801ef25cb791b1 100644 (file)
@@ -2401,7 +2401,9 @@ core_ethernet:              enp0s3
             nameservers:
               search: [ {{ domain_priv }} ]
               addresses: [ {{ core_addr }} ]
-            gateway4: {{ gate_addr }}
+            routes:
+            - to: default
+              via: {{ gate_addr }}
     dest: /etc/netplan/60-core.yaml
     mode: u=rw,g=r,o=
   notify: Apply netplan.
@@ -3059,11 +3061,9 @@ installed by more specialized roles.
   become: yes
   blockinfile:
     block: |
-        webmaster:     root
         admin:         root
         www-data:      root
         monkey:                root
-        root:          {{ ansible_user }}
     path: /etc/aliases
     marker: "# {mark} INSTITUTE MANAGED BLOCK"
   notify: New aliases.
index 9055035ec6bed0c8a8c5bb2506c8c2a758fe044a..bdc99ea811ea8261cedb1858e0395380dc6231c7 100644 (file)
@@ -57,7 +57,9 @@
             nameservers:
               search: [ {{ domain_priv }} ]
               addresses: [ {{ core_addr }} ]
-            gateway4: {{ gate_addr }}
+            routes:
+            - to: default
+              via: {{ gate_addr }}
     dest: /etc/netplan/60-core.yaml
     mode: u=rw,g=r,o=
   notify: Apply netplan.
   become: yes
   blockinfile:
     block: |
-        webmaster:     root
         admin:         root
         www-data:      root
         monkey:                root
-        root:          {{ ansible_user }}
     path: /etc/aliases
     marker: "# {mark} INSTITUTE MANAGED BLOCK"
   notify: New aliases.