blob: e6b187977f7565f064dfd39376277a7ae1dec086 (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
---
- name: Install basic
package:
name:
- rsync
- psmisc
- ncat
- nmap
- bind9-dnsutils
- ldnsutils
- htop
- unattended-upgrades
- jq
- ripgrep
state: present
- name: Install mailer
package:
name:
- nullmailer
state: present
when:
- mail_nullmailer is defined
- mail_nullmailer
- name: Copy service executable
copy:
src: files/onmon.sh
dest: /usr/local/bin/onmon.sh
mode: "0750"
owner: "root"
group: "root"
- name: Copy service file
copy:
src: files/onmon.service
dest: /etc/systemd/system/onmon.service
mode: "0640"
owner: "root"
group: "root"
- name: Ensure online monitor is enabled
systemd:
name: onmon.service
enabled: true
state: started
daemon_reload: true
|