Fix ini_file module parameter "section".
authorMatt Birkholz <matt@birchwood-abbey.net>
Sun, 23 Nov 2025 19:58:13 +0000 (12:58 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Sun, 23 Nov 2025 19:58:13 +0000 (12:58 -0700)
Verified it clips whole sections.  Found that it includes all the
commentary leading the next section headline, so keeping a backup.

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

index 23d6e8861d2be9519cc089a2d7795d1623547888..3680107f4be7484a1d31159b0c5b9c0cb06cc090 100644 (file)
@@ -1432,9 +1432,11 @@ trends in resource usage.
 - name: Punt default Munin node.
   become: yes
   ini_file:
-    section: "[localhost.localdomain]"
+    section: "localhost.localdomain"
     state: absent
+    backup: true
     path: /etc/munin/munin.conf
+  notify: Restart Munin.
 
 - name: Configure actual Munin nodes.
   become: yes
index 32c7d9611fac79c1e9a3bf70eb28e8c5a3a4d19c..292652c2cf28f8e2707aa3f9b2df68938ed219b3 100644 (file)
 - name: Punt default Munin node.
   become: yes
   ini_file:
-    section: "[localhost.localdomain]"
+    section: "localhost.localdomain"
     state: absent
+    backup: true
     path: /etc/munin/munin.conf
+  notify: Restart Munin.
 
 - name: Configure actual Munin nodes.
   become: yes