aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/general.yml
diff options
context:
space:
mode:
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