mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
cleaner Ansible messaging
This commit is contained in:
parent
a7cf338aa9
commit
4be8702090
1 changed files with 6 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
- name: Install munin package
|
- name: Install Munin package
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
state=present
|
state=present
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
- download
|
- download
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
|
|
||||||
- name: Install munin package
|
- name: Install Munin package
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
state=present
|
state=present
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
- download
|
- download
|
||||||
when: not is_debuntu
|
when: not is_debuntu
|
||||||
|
|
||||||
- name: Copy munin config file
|
- name: Copy Munin config file
|
||||||
template: src={{ item.src }}
|
template: src={{ item.src }}
|
||||||
dest={{ item.dest }}
|
dest={{ item.dest }}
|
||||||
owner=root
|
owner=root
|
||||||
|
@ -44,13 +44,13 @@
|
||||||
state=started
|
state=started
|
||||||
when: munin_enabled
|
when: munin_enabled
|
||||||
|
|
||||||
- name: Enable apache lookup
|
- name: Enable Apache lookup
|
||||||
file: src=/etc/apache2/sites-available/munin24.conf
|
file: src=/etc/apache2/sites-available/munin24.conf
|
||||||
dest=/etc/apache2/sites-enabled/munin24.conf
|
dest=/etc/apache2/sites-enabled/munin24.conf
|
||||||
state=link
|
state=link
|
||||||
when: munin_enabled and is_debuntu
|
when: munin_enabled and is_debuntu
|
||||||
|
|
||||||
- name: disable apache lookup
|
- name: Disable Apache lookup
|
||||||
file: src=/etc/apache2/sites-available/munin24.conf
|
file: src=/etc/apache2/sites-available/munin24.conf
|
||||||
dest=/etc/apache2/sites-enabled/munin24.conf
|
dest=/etc/apache2/sites-enabled/munin24.conf
|
||||||
state=absent
|
state=absent
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
state=stopped
|
state=stopped
|
||||||
when: not munin_enabled
|
when: not munin_enabled
|
||||||
|
|
||||||
- name: If mysql is enabled, let munin monitor it
|
- name: If MySQL is enabled, let Munin monitor it
|
||||||
copy: dest=/etc/munin/plugins/
|
copy: dest=/etc/munin/plugins/
|
||||||
src={{ item }}
|
src={{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -89,4 +89,3 @@
|
||||||
value: "{{ munin_install }}"
|
value: "{{ munin_install }}"
|
||||||
- option: enabled
|
- option: enabled
|
||||||
value: "{{ munin_enabled }}"
|
value: "{{ munin_enabled }}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue