diff --git a/roles/monit/tasks/main.yml b/roles/monit/tasks/main.yml index 26a3c2a7f..e57ee7c39 100644 --- a/roles/monit/tasks/main.yml +++ b/roles/monit/tasks/main.yml @@ -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 }}"