Sha256: 1ace32b953529dd05da269b47a9022b8232d0efe05f6231d87c36948e96e5a62

Contents?: true

Size: 719 Bytes

Versions: 15

Compression:

Stored size: 719 Bytes

Contents

- name: Install monit
  apt: name=monit state=present

- name: Register monit config files
  template: src=monitrc.j2
            dest=/etc/monitrc
            mode=700
  register: web_interface_monit_config

- name: Register monit config files
  template: src={{ item }}.j2
            dest=/etc/monit/conf.d/{{ item }}
            mode=u=rw,g=r,o=r
  with_items:
   - web_interface
  register: web_interface_monit_config

- name: Reload Monit
  command: bash -lc "monit reload"
  when: web_interface_monit_config.changed

- name: Give deployer user access to monit
  lineinfile: 'dest=/etc/sudoers
               state=present
               line="{{ deployer_user.name }} ALL = (ALL) ALL, NOPASSWD: /usr/bin/monit"'

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
taperole-2.1.1 roles/install_monit/tasks/main.yml
taperole-2.1.0 roles/install_monit/tasks/main.yml
taperole-2.0.7 roles/monit_install/tasks/main.yml
taperole-2.0.6 roles/monit_install/tasks/main.yml
taperole-2.0.5 roles/monit_install/tasks/main.yml
taperole-2.0.4 roles/monit_install/tasks/main.yml
taperole-2.0.3 roles/monit_install/tasks/main.yml
taperole-2.0.2 roles/monit_install/tasks/main.yml
taperole-2.0.1 roles/monit_install/tasks/main.yml
taperole-2.0.0 roles/monit_install/tasks/main.yml
taperole-1.8.2 roles/monit_install/tasks/main.yml
taperole-1.8.1 roles/monit_install/tasks/main.yml
taperole-1.8.0 roles/monit_install/tasks/main.yml
taperole-1.7.1 roles/monit_install/tasks/main.yml
taperole-1.7.0 roles/monit_install/tasks/main.yml