git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/roles/patch_redhat/tasks/main.yaml
diff options
context:
space:
mode:
authormail_redacted_for_web 2026-04-18 10:20:56 +0200
committermail_redacted_for_web 2026-04-18 10:20:56 +0200
commit77628b800070a825e0b7e28f0ccc647d1912f4a4 (patch)
tree9edce05e98b1142f480a07b08b3f4d9a95eaa4ae /roles/patch_redhat/tasks/main.yaml
parentb8f96d867a7296bed82c49023f03c16a16da40c0 (diff)
downloados-patch-77628b800070a825e0b7e28f0ccc647d1912f4a4.tar.bz2
feat: Remove rkhunter
- SHM monitoring becomes tedious, and SSH monitoring ignores any includes. --> infeasible, better switch to other mechanisms like integrit, tripwire, ... - http://www.catb.org/~esr/writings/unix-koans/nervous.html
Diffstat (limited to 'roles/patch_redhat/tasks/main.yaml')
-rw-r--r--roles/patch_redhat/tasks/main.yaml17
1 files changed, 1 insertions, 16 deletions
diff --git a/roles/patch_redhat/tasks/main.yaml b/roles/patch_redhat/tasks/main.yaml
index 9732153..63b33be 100644
--- a/roles/patch_redhat/tasks/main.yaml
+++ b/roles/patch_redhat/tasks/main.yaml
@@ -24,16 +24,6 @@
changed_when: false
become: true
- block:
- - name: Check for existence of rkhunter
- ansible.builtin.stat:
- path: /usr/bin/rkhunter
- register: rkhex
- - name: RKhunter pre-check
- ansible.builtin.command: rkhunter -c --sk --rwo --ns
- become: true
- no_log: true
- changed_when: false
- when: rkhex.stat is defined and rkhex.stat.executable is defined and rkhex.stat.executable
- name: Upgrade all installed packages (RHEL)
ansible.builtin.yum:
name: '*'
@@ -46,7 +36,7 @@
# - name: Auto-removal of orphaned dependencies (RHEL)
# ansible.builtin.yum:
# autoremove: "yes"
- name: Updates and RKhunter checks
+ name: Updates
# yum always tosses an arbitrary extra line at you, a simple tr -s does not eradicate it, so - well,
# 0 and 1 are fine. As explained above, the RC is worthless when run through ansible.
when: yue.stdout|int > 1
@@ -69,11 +59,6 @@
ansible.builtin.command: yum clean packages
changed_when: true
become: true
-- name: RKhunter properties update
- ansible.builtin.command: rkhunter --propupd --rwo --ns
- become: true
- changed_when: true
- when: rkhex.stat is defined and rkhex.stat.executable is defined and rkhex.stat.executable
- name: Reboot if required
# ignore_errors: yes
ansible.builtin.reboot: