mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update munin/tasks/main.yml
This commit is contained in:
parent
47879dafd8
commit
b16bea5bdd
1 changed files with 20 additions and 5 deletions
|
@ -1,7 +1,22 @@
|
|||
- name: Install munin
|
||||
- name: Install Munin if it does not appear installed in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
|
||||
include_tasks: install.yml
|
||||
when: munin_install and not munin_installed is defined
|
||||
when: not munin_installed is defined
|
||||
|
||||
- name: Enable munin
|
||||
include_tasks: enable.yml
|
||||
when: munin_install or munin_installed is defined
|
||||
- name: Enable or Disable Munin
|
||||
include_tasks: enable-or-disable.yml
|
||||
|
||||
- name: Add 'munin' variable values to {{ iiab_ini_file }}
|
||||
ini_file:
|
||||
path: "{{ iiab_ini_file }}"
|
||||
section: munin
|
||||
option: "{{ item.option }}"
|
||||
value: "{{ item.value | string }}"
|
||||
with_items:
|
||||
- option: name
|
||||
value: Munin
|
||||
- option: description
|
||||
value: '"Munin is a networked resource monitoring tool that can help analyze resource trends and ''what just happened to kill our performance?'' problems."'
|
||||
- option: installed
|
||||
value: "{{ munin_install }}"
|
||||
- option: enabled
|
||||
value: "{{ munin_enabled }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue