diff options
author | uvok cheetah | 2024-04-04 21:22:13 +0200 |
---|---|---|
committer | uvok cheetah | 2024-04-04 21:22:13 +0200 |
commit | 79d1fce98cf519a224f8b53fc6690ed070040374 (patch) | |
tree | 954b9eb761642aeb8d7587fc05056e8cbf13f18d /roles/common/tasks | |
parent | aaaa51c97edcb16481361be702fc08e895172008 (diff) |
Instal jq, add online monitor
Diffstat (limited to 'roles/common/tasks')
-rw-r--r-- | roles/common/tasks/main.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 20d7ddf..02d9392 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -10,6 +10,7 @@ - ldnsutils - htop - unattended-upgrades + - jq state: present - name: Install mailer package: @@ -19,3 +20,23 @@ 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 |