- name: Punt default Munin node.
become: yes
- replace:
+ ini_file:
+ section: "[localhost.localdomain]"
+ state: absent
path: /etc/munin/munin.conf
- regexp: '^\[localhost.*\n\n'
- name: Configure actual Munin nodes.
become: yes
become: yes
apt: pkg=munin-node
+- name: Configure Munin Node.
+ become: yes
+ lineinfile:
+ regexp: "^allow [^]{{ core_addr|regex_escape }}[$]$"
+ line: "allow ^{{ core_addr|regex_escape }}$"
+ path: /etc/munin/munin-node.conf
+ notify: Restart Munin node.
+
- name: Add {{ ansible_user }} to munin group.
become: yes
user:
become: yes
apt: pkg=munin-node
+- name: Configure Munin Node.
+ become: yes
+ lineinfile:
+ regexp: "^allow [^]{{ core_addr|regex_escape }}[$]$"
+ line: "allow ^{{ core_addr|regex_escape }}$"
+ path: /etc/munin/munin-node.conf
+ notify: Restart Munin node.
+
- name: Add {{ ansible_user }} to munin group.
become: yes
user:
- name: Punt default Munin node.
become: yes
- replace:
+ ini_file:
+ section: "[localhost.localdomain]"
+ state: absent
path: /etc/munin/munin.conf
- regexp: '^\[localhost.*\n\n'
- name: Configure actual Munin nodes.
become: yes