aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/general.yml
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-10-15 09:21:37 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-10-15 09:21:37 +0300
commit28b9f0736e43d188abc8a5b63eee1e428cca2935 (patch)
tree8f99c06addb532e7a2200ced634b2f0c60aae9e1 /tasks/general.yml
parent9105c2d8936b0256e5aa3068fbeb7cc440144968 (diff)
Add pylogsentinel
Diffstat (limited to 'tasks/general.yml')
-rw-r--r--tasks/general.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/tasks/general.yml b/tasks/general.yml
index df24be2..b561d2a 100644
--- a/tasks/general.yml
+++ b/tasks/general.yml
@@ -8,6 +8,8 @@
- jq
- curl
- bash
+ - python
+ - py311-pip
- name: Set up periodic.conf
template:
@@ -44,6 +46,32 @@
name: auditd
state: started
+- name: Check if pylogsentinel is installed
+ shell: pip show pylogsentinel
+ register: pylogsentinel_check
+ failed_when: false
+ changed_when: false
+
+- name: Install pylogsentinel
+ shell: pip install pylogsentinel==0.2.1 --force --no-input
+ when: pylogsentinel_check.rc != 0
+
+- name: Install pylogsentinel.conf
+ template:
+ src: usr_local_etc_pylogsentinel.conf.j2
+ dest: /usr/local/etc/pylogsentinel.conf
+ owner: root
+ group: wheel
+ mode: "0644"
+
+- name: Install pylogsentinel-batch-email.sh
+ template:
+ src: usr_local_bin_pylogsentinel-batch-email.sh.j2
+ dest: /usr/local/bin/pylogsentinel-batch-email.sh
+ owner: root
+ group: wheel
+ mode: "0755"
+
- name: Set up crontab
template:
src: etc_crontab.j2