You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: linux_os/guide/system/accounts/accounts-pam/set_password_hashing_algorithm/set_password_hashing_algorithm_passwordauth/ansible/shared.yml
Copy file name to clipboardExpand all lines: linux_os/guide/system/accounts/accounts-pam/set_password_hashing_algorithm/set_password_hashing_algorithm_systemauth/ansible/shared.yml
Copy file name to clipboardExpand all lines: linux_os/guide/system/network/network-firewalld/ruleset_modifications/firewalld_loopback_traffic_restricted/ansible/shared.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@
43
43
- name: '{{{ rule_title }}} - Informative Message Based on Service State'
Copy file name to clipboardExpand all lines: linux_os/guide/system/network/network-firewalld/ruleset_modifications/firewalld_loopback_traffic_trusted/ansible/shared.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@
36
36
- name: '{{{ rule_title }}} - Informative Message Based on Service State'
Copy file name to clipboardExpand all lines: linux_os/guide/system/software/integrity/software-integrity/aide/aide_check_audit_tools/ansible/shared.yml
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,9 @@
17
17
with_items:
18
18
- aide
19
19
20
+
- name: "{{{ rule_title }}} - Gather the package facts"
21
+
ansible.builtin.package_facts:
22
+
manager: auto
20
23
21
24
- name: Set audit_tools fact
22
25
set_fact:
@@ -39,11 +42,16 @@
39
42
path: {{{ aide_conf_path }}}
40
43
regexp: ^{{ item }}\s
41
44
line: "{{ item }} {{{ aide_string() }}}"
45
+
create: true
42
46
with_items: "{{ audit_tools }}"
43
-
47
+
when:
48
+
- '"aide" in ansible_facts.packages'
44
49
45
50
- name: Configure AIDE to properly protect audit tools
0 commit comments