auditd: ensure check mode runs non-destructive call to ausyscall --dump

Signed-off-by: polski-g <polski_g@sent.at>
This commit is contained in:
polski-g 2025-06-03 11:35:05 -04:00
parent f70821bf7e
commit 1bff329a05
No known key found for this signature in database
GPG key ID: C077F64D3FFD4D39

View file

@ -7,6 +7,7 @@
- name: "POST | AUDITD | Set supported_syscalls variable"
ansible.builtin.shell: ausyscall --dump | awk '{print $2}'
changed_when: false
check_mode: false
failed_when: discovered_auditd_syscalls.rc not in [ 0, 1 ]
register: discovered_auditd_syscalls