From: Matt Birkholz Date: Sun, 23 Nov 2025 19:58:13 +0000 (-0700) Subject: Fix ini_file module parameter "section". X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=0d957cb0c4db7d227bbd17284cd8f5a8689a7fb5;p=Network.git Fix ini_file module parameter "section". Verified it clips whole sections. Found that it includes all the commentary leading the next section headline, so keeping a backup. --- diff --git a/README.org b/README.org index 23d6e88..3680107 100644 --- a/README.org +++ b/README.org @@ -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 diff --git a/roles_t/abbey-core/tasks/main.yml b/roles_t/abbey-core/tasks/main.yml index 32c7d96..292652c 100644 --- a/roles_t/abbey-core/tasks/main.yml +++ b/roles_t/abbey-core/tasks/main.yml @@ -250,9 +250,11 @@ - 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