-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathtasks_monit.yml
More file actions
27 lines (24 loc) · 770 Bytes
/
Copy pathtasks_monit.yml
File metadata and controls
27 lines (24 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
- name: Monit | Check if is installed
command: dpkg-query -W monit
when: ansible_os_family == "Debian"
register: monit_check_deb
failed_when: monit_check_deb.rc > 1
changed_when: monit_check_deb.rc == 1
tags:
- monit
- name: Monit | libssl-dev dependency
apt: pkg="libssl-dev" state="present"
become: yes
tags:
- monit
- name: Monit | Download
get_url: url="http://us.archive.ubuntu.com/ubuntu/pool/universe/m/monit/monit_{{monit_version}}_amd64.deb" dest="/tmp/monit_{{monit_version}}_amd64.deb"
when: monit_check_deb.rc == 1
tags:
- monit
- name: Monit | Install
apt: deb="/tmp/monit_{{monit_version}}_amd64.deb"
when: monit_check_deb.rc == 1
become: yes
tags:
- monit