mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
tweaks for understandability
This commit is contained in:
parent
40a0a4063a
commit
e2a8b09014
1 changed files with 5 additions and 5 deletions
|
@ -1,10 +1,10 @@
|
||||||
- name: Install monit package
|
- name: Install Monit package
|
||||||
package: name=monit
|
package: name=monit
|
||||||
state=present
|
state=present
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
- name: Install chkconfig package -- not in debian 9
|
- name: Install chkconfig package -- not in Debian 8
|
||||||
package: name=chkconfig
|
package: name=chkconfig
|
||||||
state=present
|
state=present
|
||||||
when: is_debian and ansible_distribution_major_version == "8"
|
when: is_debian and ansible_distribution_major_version == "8"
|
||||||
|
@ -34,14 +34,14 @@
|
||||||
delay: 1
|
delay: 1
|
||||||
|
|
||||||
#TODO: create systemd script
|
#TODO: create systemd script
|
||||||
- name: Enable monit service
|
- name: Enable 'monit' service
|
||||||
command: chkconfig monit on
|
command: chkconfig monit on
|
||||||
when: is_debian and ansible_local.local_facts.os_ver == "debian-8"
|
when: is_debian and ansible_local.local_facts.os_ver == "debian-8"
|
||||||
|
|
||||||
#- name: Restart monit service
|
#- name: Restart monit service
|
||||||
# command: service monit restart
|
# command: service monit restart
|
||||||
|
|
||||||
- name: Add monit to service list
|
- name: Add 'monit' to service list
|
||||||
ini_file: dest='{{ service_filelist }}'
|
ini_file: dest='{{ service_filelist }}'
|
||||||
section=monit
|
section=monit
|
||||||
option='{{ item.option }}'
|
option='{{ item.option }}'
|
||||||
|
@ -50,6 +50,6 @@
|
||||||
- option: name
|
- option: name
|
||||||
value: monit
|
value: monit
|
||||||
- option: description
|
- option: description
|
||||||
value: '"Monit is a background service monitor which can correct problems, send email, restart services"'
|
value: '"Monit is a background service monitor which can correct problems, send email, restart services."'
|
||||||
- option: enabled
|
- option: enabled
|
||||||
value: "{{ monit_enabled }}"
|
value: "{{ monit_enabled }}"
|
||||||
|
|
Loading…
Reference in a new issue