Skip to content

Commit 78e5acf

Browse files
author
gregmalkov
committed
stop auditd on redhat/centos
1 parent c99c322 commit 78e5acf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tasks/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
- name: Disable auditd service
1010
include: disable_auditd.yml
11-
when: ansible_distribution == 'Amazon'
11+
when:
12+
- ansible_os_family == 'RedHat'
13+
- (ansible_distribution != 'Amazon' or ansible_kernel is search("\.amzn2\."))
1214

1315
- name: Run Apt configure and install Threat Stack
1416
include: apt_install.yml

0 commit comments

Comments
 (0)