mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +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
|
||||
state=present
|
||||
tags:
|
||||
- download
|
||||
|
||||
- name: Install chkconfig package -- not in debian 9
|
||||
- name: Install chkconfig package -- not in Debian 8
|
||||
package: name=chkconfig
|
||||
state=present
|
||||
when: is_debian and ansible_distribution_major_version == "8"
|
||||
|
@ -34,14 +34,14 @@
|
|||
delay: 1
|
||||
|
||||
#TODO: create systemd script
|
||||
- name: Enable monit service
|
||||
- name: Enable 'monit' service
|
||||
command: chkconfig monit on
|
||||
when: is_debian and ansible_local.local_facts.os_ver == "debian-8"
|
||||
|
||||
#- name: Restart monit service
|
||||
# command: service monit restart
|
||||
|
||||
- name: Add monit to service list
|
||||
- name: Add 'monit' to service list
|
||||
ini_file: dest='{{ service_filelist }}'
|
||||
section=monit
|
||||
option='{{ item.option }}'
|
||||
|
@ -50,6 +50,6 @@
|
|||
- option: name
|
||||
value: monit
|
||||
- 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
|
||||
value: "{{ monit_enabled }}"
|
||||
|
|
Loading…
Reference in a new issue