ansible-playbook [core 2.16.18] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-mT5 executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/usr/bin/python3.12) jinja version = 3.1.6 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'jsonl', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_purge_rules.yml ************************************************ 1 plays in /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml PLAY [Test auditd_purge_rules purge and idempotence] *************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:5 Friday 17 April 2026 17:27:49 -0400 (0:00:00.017) 0:00:00.017 ********** ok: [managed-node1] TASK [Back up existing auditd configuration and rules metadata] **************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:13 Friday 17 April 2026 17:27:50 -0400 (0:00:01.014) 0:00:01.031 ********** included: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml for managed-node1 TASK [Check for existing auditd.conf] ****************************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:7 Friday 17 April 2026 17:27:50 -0400 (0:00:00.047) 0:00:01.079 ********** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776461249.161508, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "33eefb6af1c751110a125b8b468118e6f0edb244", "ctime": 1776461245.410503, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 174063810, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1776461245.0755024, "nlink": 1, "path": "/etc/audit/auditd.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 852, "uid": 0, "version": "865041909", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check for existing custom.rules] ***************************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:12 Friday 17 April 2026 17:27:50 -0400 (0:00:00.408) 0:00:01.487 ********** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776461247.9295063, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "69008de23bc363984514521ddc3cd86619715c09", "ctime": 1776461246.4945045, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 184549570, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0664", "mtime": 1776461246.246504, "nlink": 1, "path": "/etc/audit/rules.d/custom.rules", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 268, "uid": 0, "version": "3976580308", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Remember whether custom.rules existed] *********************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:17 Friday 17 April 2026 17:27:51 -0400 (0:00:00.317) 0:00:01.805 ********** ok: [managed-node1] => { "ansible_facts": { "__auditd_integration_had_custom_rules": true }, "changed": false } TASK [Back up auditd.conf before test] ***************************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:21 Friday 17 April 2026 17:27:51 -0400 (0:00:00.013) 0:00:01.819 ********** changed: [managed-node1] => { "changed": true, "checksum": "33eefb6af1c751110a125b8b468118e6f0edb244", "dest": "/root/.lsr_auditd_integration_auditd.conf.bak", "gid": 0, "group": "root", "md5sum": "eda8c45ce09c30766469af2714e2eff9", "mode": "0640", "owner": "root", "secontext": "system_u:object_r:admin_home_t:s0", "size": 852, "src": "/etc/audit/auditd.conf", "state": "file", "uid": 0 } TASK [Back up custom.rules before test] **************************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:29 Friday 17 April 2026 17:27:51 -0400 (0:00:00.415) 0:00:02.234 ********** changed: [managed-node1] => { "changed": true, "checksum": "69008de23bc363984514521ddc3cd86619715c09", "dest": "/root/.lsr_auditd_integration_custom.rules.bak", "gid": 0, "group": "root", "md5sum": "e3743c173f2e0ea45fbb3aa9853a278e", "mode": "0664", "owner": "root", "secontext": "system_u:object_r:admin_home_t:s0", "size": 268, "src": "/etc/audit/rules.d/custom.rules", "state": "file", "uid": 0 } TASK [Record auditd.conf backup path for cleanup] ****************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:37 Friday 17 April 2026 17:27:52 -0400 (0:00:00.320) 0:00:02.555 ********** ok: [managed-node1] => { "ansible_facts": { "__auditd_integration_backup_auditd_conf": "/root/.lsr_auditd_integration_auditd.conf.bak" }, "changed": false } TASK [Record custom.rules backup path for cleanup] ***************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:42 Friday 17 April 2026 17:27:52 -0400 (0:00:00.014) 0:00:02.569 ********** ok: [managed-node1] => { "ansible_facts": { "__auditd_integration_backup_custom_rules": "/root/.lsr_auditd_integration_custom.rules.bak" }, "changed": false } TASK [Ensure rules.d backup parent directory is absent] ************************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:16 Friday 17 April 2026 17:27:52 -0400 (0:00:00.013) 0:00:02.583 ********** ok: [managed-node1] => { "changed": false, "path": "/root/.lsr_auditd_purge_rulesd.backup", "state": "absent" } TASK [Create parent directory for rules.d snapshot] **************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:21 Friday 17 April 2026 17:27:52 -0400 (0:00:00.409) 0:00:02.993 ********** changed: [managed-node1] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/root/.lsr_auditd_purge_rulesd.backup", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Snapshot rules.d tree for full restore after test] *********************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:27 Friday 17 April 2026 17:27:52 -0400 (0:00:00.317) 0:00:03.311 ********** changed: [managed-node1] => { "changed": true, "checksum": null, "dest": "/root/.lsr_auditd_purge_rulesd.backup/", "gid": 0, "group": "root", "md5sum": null, "mode": "0750", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 45, "src": "/etc/audit/rules.d/", "state": "directory", "uid": 0 } TASK [Install decoy rules fragment to be removed by purge] ********************* task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:34 Friday 17 April 2026 17:27:53 -0400 (0:00:00.318) 0:00:03.629 ********** changed: [managed-node1] => { "changed": true, "checksum": "35324fa08aa315fc1ab79570382f077fec44dce9", "dest": "/etc/audit/rules.d/99-lsr-purge-decoy.rules", "gid": 0, "group": "root", "md5sum": "f628c72c0861f587eff2d10f92b8e21b", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:auditd_etc_t:s0", "size": 89, "src": "/root/.ansible/tmp/ansible-tmp-1776461273.1125746-9756-265733049346573/source", "state": "file", "uid": 0 } TASK [Run auditd role with purge enabled] ************************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:42 Friday 17 April 2026 17:27:53 -0400 (0:00:00.590) 0:00:04.220 ********** included: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml for managed-node1 TASK [Clear facts] ************************************************************* task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:9 Friday 17 April 2026 17:27:53 -0400 (0:00:00.019) 0:00:04.240 ********** META: facts cleared TASK [Run the role] ************************************************************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:23 Friday 17 April 2026 17:27:53 -0400 (0:00:00.000) 0:00:04.241 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "__sr_failed_when is defined", "skip_reason": "Conditional result was False" } TASK [Run the role normally] *************************************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:33 Friday 17 April 2026 17:27:53 -0400 (0:00:00.015) 0:00:04.256 ********** TASK [fedora.linux_system_roles.auditd : Validating arguments against arg spec 'main' - Manage auditd and audit rules] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:5 Friday 17 April 2026 17:27:53 -0400 (0:00:00.066) 0:00:04.322 ********** ok: [managed-node1] => { "changed": false, "validate_args_context": { "argument_spec_name": "main", "name": "auditd", "path": "/tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd", "type": "role" } } MSG: The arg spec validation passed TASK [fedora.linux_system_roles.auditd : Validate role parameters] ************* task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:3 Friday 17 April 2026 17:27:53 -0400 (0:00:00.012) 0:00:04.335 ********** included: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml for managed-node1 TASK [fedora.linux_system_roles.auditd : Assert num_logs range (num_logs_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:4 Friday 17 April 2026 17:27:53 -0400 (0:00:00.027) 0:00:04.362 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert freq range (freq_parser)] ****** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:11 Friday 17 April 2026 17:27:53 -0400 (0:00:00.015) 0:00:04.378 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert incremental flush requires non-zero freq (sanity_check)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:18 Friday 17 April 2026 17:27:53 -0400 (0:00:00.015) 0:00:04.393 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert priority_boost range (priority_boost_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:25 Friday 17 April 2026 17:27:53 -0400 (0:00:00.014) 0:00:04.408 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert q_depth range (q_depth_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:31 Friday 17 April 2026 17:27:53 -0400 (0:00:00.015) 0:00:04.423 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert max_restarts range (max_restarts_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:38 Friday 17 April 2026 17:27:53 -0400 (0:00:00.015) 0:00:04.439 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert tcp_listen_port range when listener enabled in build (tcp_listen_port_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:44 Friday 17 April 2026 17:27:53 -0400 (0:00:00.014) 0:00:04.453 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert tcp_listen_queue range (tcp_listen_queue_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:50 Friday 17 April 2026 17:27:53 -0400 (0:00:00.014) 0:00:04.468 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert tcp_max_per_addr range (tcp_max_per_addr_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:56 Friday 17 April 2026 17:27:53 -0400 (0:00:00.014) 0:00:04.483 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert tcp_client_max_idle range (tcp_client_max_idle_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:62 Friday 17 April 2026 17:27:53 -0400 (0:00:00.014) 0:00:04.498 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert tcp_client_ports format (tcp_client_ports_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:68 Friday 17 April 2026 17:27:53 -0400 (0:00:00.014) 0:00:04.513 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_tcp_client_ports is string", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert tcp_client_ports range order] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:78 Friday 17 April 2026 17:27:53 -0400 (0:00:00.013) 0:00:04.526 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_tcp_client_ports is string", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert space_left_action rejects halt (space_action_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:87 Friday 17 April 2026 17:27:53 -0400 (0:00:00.013) 0:00:04.540 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert space_left percentage is between 1 and 99 when given as N%] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:93 Friday 17 April 2026 17:27:54 -0400 (0:00:00.012) 0:00:04.553 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "(auditd_space_left | string) is match('^[0-9]+%$')", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert admin_space_left percentage is between 1 and 99 when given as N%] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:105 Friday 17 April 2026 17:27:54 -0400 (0:00:00.013) 0:00:04.566 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "(auditd_admin_space_left | string) is match('^[0-9]+%$')", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert space_left is greater than admin_space_left when both use same form] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:117 Friday 17 April 2026 17:27:54 -0400 (0:00:00.013) 0:00:04.579 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert disk_full_action rejects email (disk_full_action_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:141 Friday 17 April 2026 17:27:54 -0400 (0:00:00.021) 0:00:04.601 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert disk_error_action rejects email and rotate (disk_error_action_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:147 Friday 17 April 2026 17:27:54 -0400 (0:00:00.018) 0:00:04.619 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert exec companion paths when action is exec] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:153 Friday 17 April 2026 17:27:54 -0400 (0:00:00.013) 0:00:04.633 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_max_log_file_action | lower == 'exec'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert space_left_action exec path] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:160 Friday 17 April 2026 17:27:54 -0400 (0:00:00.011) 0:00:04.644 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_space_left_action | lower == 'exec'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert admin_space_left_action exec path] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:167 Friday 17 April 2026 17:27:54 -0400 (0:00:00.010) 0:00:04.654 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_admin_space_left_action | lower == 'exec'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert disk_full_action exec path] **** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:174 Friday 17 April 2026 17:27:54 -0400 (0:00:00.010) 0:00:04.665 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_disk_full_action | lower == 'exec'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert disk_error_action exec path] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:181 Friday 17 April 2026 17:27:54 -0400 (0:00:00.011) 0:00:04.676 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_disk_error_action | lower == 'exec'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert name when name_format is user (resolve_node)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:188 Friday 17 April 2026 17:27:54 -0400 (0:00:00.011) 0:00:04.687 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_name_format | lower == 'user'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert auditd_rules entries] ********** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:195 Friday 17 April 2026 17:27:54 -0400 (0:00:00.010) 0:00:04.698 ********** ok: [managed-node1] => (item=lsr_auditd_purge_test) => { "ansible_loop_var": "item", "changed": false, "item": { "file": "/etc/issue", "keyname": "lsr_auditd_purge_test", "permissions": [ "read" ] } } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert syscall rules include required keys] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:205 Friday 17 April 2026 17:27:54 -0400 (0:00:00.022) 0:00:04.720 ********** skipping: [managed-node1] => { "changed": false, "skipped_reason": "No items in the list" } TASK [fedora.linux_system_roles.auditd : Assert permission keys for file rules] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:216 Friday 17 April 2026 17:27:54 -0400 (0:00:00.015) 0:00:04.735 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Set platform/version specific variables] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:6 Friday 17 April 2026 17:27:54 -0400 (0:00:00.020) 0:00:04.756 ********** included: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.auditd : Ensure ansible_facts used by role] **** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:2 Friday 17 April 2026 17:27:54 -0400 (0:00:00.027) 0:00:04.784 ********** ok: [managed-node1] TASK [fedora.linux_system_roles.auditd : Check if system is ostree] ************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:10 Friday 17 April 2026 17:27:54 -0400 (0:00:00.518) 0:00:05.302 ********** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.auditd : Set flag to indicate system is ostree] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:15 Friday 17 April 2026 17:27:55 -0400 (0:00:00.316) 0:00:05.619 ********** ok: [managed-node1] => { "ansible_facts": { "__auditd_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.auditd : Set platform/version specific variables] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:19 Friday 17 April 2026 17:27:55 -0400 (0:00:00.021) 0:00:05.640 ********** skipping: [managed-node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.auditd : Resolve package names for OS family] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:34 Friday 17 April 2026 17:27:55 -0400 (0:00:00.027) 0:00:05.669 ********** ok: [managed-node1] => { "ansible_facts": { "__auditd_packages": [ "audit" ] }, "changed": false } TASK [fedora.linux_system_roles.auditd : Install audit packages] *************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:9 Friday 17 April 2026 17:27:55 -0400 (0:00:00.013) 0:00:05.682 ********** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.auditd : Deploy auditd configuration] ********** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:15 Friday 17 April 2026 17:27:58 -0400 (0:00:02.928) 0:00:08.611 ********** ok: [managed-node1] => { "changed": false, "checksum": "33eefb6af1c751110a125b8b468118e6f0edb244", "dest": "/etc/audit/auditd.conf", "gid": 0, "group": "root", "mode": "0640", "owner": "root", "path": "/etc/audit/auditd.conf", "secontext": "system_u:object_r:auditd_etc_t:s0", "size": 852, "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.auditd : Ensure rules.d directory exists] ****** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:22 Friday 17 April 2026 17:27:58 -0400 (0:00:00.601) 0:00:09.212 ********** ok: [managed-node1] => { "changed": false, "gid": 0, "group": "root", "mode": "0750", "owner": "root", "path": "/etc/audit/rules.d", "secontext": "system_u:object_r:auditd_etc_t:s0", "size": 77, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.auditd : Purge rules.d when requested] ********* task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:28 Friday 17 April 2026 17:27:58 -0400 (0:00:00.324) 0:00:09.537 ********** included: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml for managed-node1 TASK [fedora.linux_system_roles.auditd : Discover files in rules.d] ************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:12 Friday 17 April 2026 17:27:59 -0400 (0:00:00.036) 0:00:09.573 ********** ok: [managed-node1] => { "changed": false, "examined": 3, "files": [ { "atime": 1776461068.806, "ctime": 1716968741.892, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 918330, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0600", "mtime": 1716968741.891, "nlink": 1, "path": "/etc/audit/rules.d/audit.rules", "pw_name": "root", "rgrp": false, "roth": false, "rusr": true, "size": 244, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1776461247.9295063, "ctime": 1776461246.4945045, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 184549570, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0664", "mtime": 1776461246.246504, "nlink": 1, "path": "/etc/audit/rules.d/custom.rules", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 268, "uid": 0, "wgrp": true, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1776461273.620541, "ctime": 1776461273.623541, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 287310018, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1776461273.3835409, "nlink": 1, "path": "/etc/audit/rules.d/99-lsr-purge-decoy.rules", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 89, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 3, "skipped_paths": {} } MSG: All paths examined TASK [fedora.linux_system_roles.auditd : Stat existing custom.rules before purge] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:18 Friday 17 April 2026 17:27:59 -0400 (0:00:00.414) 0:00:09.987 ********** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776461247.9295063, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "69008de23bc363984514521ddc3cd86619715c09", "ctime": 1776461246.4945045, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 184549570, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0664", "mtime": 1776461246.246504, "nlink": 1, "path": "/etc/audit/rules.d/custom.rules", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 268, "uid": 0, "version": "3976580308", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.auditd : Read existing custom.rules for comparison] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:23 Friday 17 April 2026 17:27:59 -0400 (0:00:00.327) 0:00:10.315 ********** ok: [managed-node1] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCiMgc3lzdGVtX3JvbGU6YXVkaXRkCgoKIyBEZWxldGUgYWxsIHByZXZpb3VzIHJ1bGVzCi1ECiMgU2V0IGJ1ZmZlciBzaXplCi1iIDMyNzY4CiMgU2V0IGZhaWx1cmUgYmVoYXZpb3IKLWYgMQojIFNldCB0aGUgbWF4aW11bSBhbW91bnQgb2YgbWVzc2FnZXMgcGVyIHNlY29uZAotciA2MAojIFNldCBlbmFibGUgZmxhZyAoMD1kaXNhYmxlLCAxPWVuYWJsZSwgMj1sb2NrZWQsIHJlcXVpcmVzIHJlYm9vdCB0byB1bmxvY2spCi1lIDEKCg==", "encoding": "base64", "source": "/etc/audit/rules.d/custom.rules" } TASK [fedora.linux_system_roles.auditd : Record whether to keep existing custom.rules (managed rules)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:29 Friday 17 April 2026 17:28:00 -0400 (0:00:00.402) 0:00:10.718 ********** ok: [managed-node1] => { "ansible_facts": { "__auditd_purge_keep_custom_rules": false }, "changed": false } TASK [fedora.linux_system_roles.auditd : Remove files from rules.d] ************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:62 Friday 17 April 2026 17:28:00 -0400 (0:00:00.040) 0:00:10.759 ********** changed: [managed-node1] => (item=/etc/audit/rules.d/audit.rules) => { "ansible_loop_var": "item", "changed": true, "item": { "atime": 1776461068.806, "ctime": 1716968741.892, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 918330, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0600", "mtime": 1716968741.891, "nlink": 1, "path": "/etc/audit/rules.d/audit.rules", "pw_name": "root", "rgrp": false, "roth": false, "rusr": true, "size": 244, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, "path": "/etc/audit/rules.d/audit.rules", "state": "absent" } changed: [managed-node1] => (item=/etc/audit/rules.d/custom.rules) => { "ansible_loop_var": "item", "changed": true, "item": { "atime": 1776461247.9295063, "ctime": 1776461246.4945045, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 184549570, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0664", "mtime": 1776461246.246504, "nlink": 1, "path": "/etc/audit/rules.d/custom.rules", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 268, "uid": 0, "wgrp": true, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, "path": "/etc/audit/rules.d/custom.rules", "state": "absent" } changed: [managed-node1] => (item=/etc/audit/rules.d/99-lsr-purge-decoy.rules) => { "ansible_loop_var": "item", "changed": true, "item": { "atime": 1776461273.620541, "ctime": 1776461273.623541, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 287310018, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1776461273.3835409, "nlink": 1, "path": "/etc/audit/rules.d/99-lsr-purge-decoy.rules", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 89, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, "path": "/etc/audit/rules.d/99-lsr-purge-decoy.rules", "state": "absent" } Notification for handler Run augenrules has been saved. Notification for handler Run augenrules has been saved. Notification for handler Run augenrules has been saved. TASK [fedora.linux_system_roles.auditd : Deploy custom audit rules] ************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:34 Friday 17 April 2026 17:28:01 -0400 (0:00:00.970) 0:00:11.729 ********** Notification for handler Run augenrules has been saved. changed: [managed-node1] => { "changed": true, "checksum": "4f9017c3cb8f8ddf2a782812732781a02ca551eb", "dest": "/etc/audit/rules.d/custom.rules", "gid": 0, "group": "root", "md5sum": "cc34bac1a48291a6662d6a5254eaaf16", "mode": "0664", "owner": "root", "secontext": "system_u:object_r:auditd_etc_t:s0", "size": 312, "src": "/root/.ansible/tmp/ansible-tmp-1776461281.2181296-9929-227692968518050/source", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.auditd : Start and enable auditd service] ****** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:44 Friday 17 April 2026 17:28:01 -0400 (0:00:00.650) 0:00:12.379 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_start_service | bool", "skip_reason": "Conditional result was False" } TASK [Flush handlers after first role run] ************************************* task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:54 Friday 17 April 2026 17:28:01 -0400 (0:00:00.012) 0:00:12.392 ********** NOTIFIED HANDLER fedora.linux_system_roles.auditd : Run augenrules for managed-node1 META: triggered running handlers for managed-node1 RUNNING HANDLER [fedora.linux_system_roles.auditd : Run augenrules] ************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/handlers/main.yml:3 Friday 17 April 2026 17:28:01 -0400 (0:00:00.000) 0:00:12.393 ********** NOTIFIED HANDLER fedora.linux_system_roles.auditd : Load audit rules for managed-node1 changed: [managed-node1] => { "changed": true, "cmd": [ "augenrules" ], "delta": "0:00:00.019000", "end": "2026-04-17 17:28:02.229583", "rc": 0, "start": "2026-04-17 17:28:02.210583" } RUNNING HANDLER [fedora.linux_system_roles.auditd : Load audit rules] ********** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/handlers/main.yml:9 Friday 17 April 2026 17:28:02 -0400 (0:00:00.431) 0:00:12.824 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_start_service | bool", "skip_reason": "Conditional result was False" } TASK [Stat decoy fragment after purge] ***************************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:57 Friday 17 April 2026 17:28:02 -0400 (0:00:00.011) 0:00:12.836 ********** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [Verify decoy rules file was purged] ************************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:62 Friday 17 April 2026 17:28:02 -0400 (0:00:00.319) 0:00:13.156 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Read custom.rules after purge] ******************************************* task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:67 Friday 17 April 2026 17:28:02 -0400 (0:00:00.013) 0:00:13.169 ********** ok: [managed-node1] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCiMgc3lzdGVtX3JvbGU6YXVkaXRkCgoKIyBEZWxldGUgYWxsIHByZXZpb3VzIHJ1bGVzCi1ECiMgU2V0IGJ1ZmZlciBzaXplCi1iIDMyNzY4CiMgU2V0IGZhaWx1cmUgYmVoYXZpb3IKLWYgMQojIFNldCB0aGUgbWF4aW11bSBhbW91bnQgb2YgbWVzc2FnZXMgcGVyIHNlY29uZAotciA2MAojIFNldCBlbmFibGUgZmxhZyAoMD1kaXNhYmxlLCAxPWVuYWJsZSwgMj1sb2NrZWQsIHJlcXVpcmVzIHJlYm9vdCB0byB1bmxvY2spCi1lIDEKCi13IC9ldGMvaXNzdWUgLXAgciAtayBsc3JfYXVkaXRkX3B1cmdlX3Rlc3QK", "encoding": "base64", "source": "/etc/audit/rules.d/custom.rules" } TASK [Verify custom.rules reflects role auditd_rules] ************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:72 Friday 17 April 2026 17:28:02 -0400 (0:00:00.310) 0:00:13.479 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Capture checksum of custom.rules before second role run] ***************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:80 Friday 17 April 2026 17:28:02 -0400 (0:00:00.015) 0:00:13.495 ********** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776461282.2175584, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d36697555eba276c9547cb7b31718d7ab6a8cea2b2ac74c41c41bbbdc64687cb", "ctime": 1776461281.7835574, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 343933060, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0664", "mtime": 1776461281.5325568, "nlink": 1, "path": "/etc/audit/rules.d/custom.rules", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 312, "uid": 0, "version": "3950867884", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Run auditd role again with identical purge and rules] ******************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:86 Friday 17 April 2026 17:28:03 -0400 (0:00:00.324) 0:00:13.820 ********** included: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml for managed-node1 TASK [Clear facts] ************************************************************* task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:9 Friday 17 April 2026 17:28:03 -0400 (0:00:00.018) 0:00:13.839 ********** META: facts cleared TASK [Run the role] ************************************************************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:23 Friday 17 April 2026 17:28:03 -0400 (0:00:00.000) 0:00:13.839 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "__sr_failed_when is defined", "skip_reason": "Conditional result was False" } TASK [Run the role normally] *************************************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:33 Friday 17 April 2026 17:28:03 -0400 (0:00:00.014) 0:00:13.854 ********** TASK [fedora.linux_system_roles.auditd : Validating arguments against arg spec 'main' - Manage auditd and audit rules] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:5 Friday 17 April 2026 17:28:03 -0400 (0:00:00.027) 0:00:13.881 ********** ok: [managed-node1] => { "changed": false, "validate_args_context": { "argument_spec_name": "main", "name": "auditd", "path": "/tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd", "type": "role" } } MSG: The arg spec validation passed TASK [fedora.linux_system_roles.auditd : Validate role parameters] ************* task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:3 Friday 17 April 2026 17:28:03 -0400 (0:00:00.013) 0:00:13.895 ********** included: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml for managed-node1 TASK [fedora.linux_system_roles.auditd : Assert num_logs range (num_logs_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:4 Friday 17 April 2026 17:28:03 -0400 (0:00:00.025) 0:00:13.920 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert freq range (freq_parser)] ****** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:11 Friday 17 April 2026 17:28:03 -0400 (0:00:00.014) 0:00:13.935 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert incremental flush requires non-zero freq (sanity_check)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:18 Friday 17 April 2026 17:28:03 -0400 (0:00:00.015) 0:00:13.950 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert priority_boost range (priority_boost_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:25 Friday 17 April 2026 17:28:03 -0400 (0:00:00.014) 0:00:13.965 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert q_depth range (q_depth_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:31 Friday 17 April 2026 17:28:03 -0400 (0:00:00.016) 0:00:13.981 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert max_restarts range (max_restarts_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:38 Friday 17 April 2026 17:28:03 -0400 (0:00:00.015) 0:00:13.997 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert tcp_listen_port range when listener enabled in build (tcp_listen_port_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:44 Friday 17 April 2026 17:28:03 -0400 (0:00:00.017) 0:00:14.014 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert tcp_listen_queue range (tcp_listen_queue_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:50 Friday 17 April 2026 17:28:03 -0400 (0:00:00.015) 0:00:14.029 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert tcp_max_per_addr range (tcp_max_per_addr_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:56 Friday 17 April 2026 17:28:03 -0400 (0:00:00.015) 0:00:14.045 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert tcp_client_max_idle range (tcp_client_max_idle_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:62 Friday 17 April 2026 17:28:03 -0400 (0:00:00.015) 0:00:14.060 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert tcp_client_ports format (tcp_client_ports_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:68 Friday 17 April 2026 17:28:03 -0400 (0:00:00.015) 0:00:14.075 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_tcp_client_ports is string", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert tcp_client_ports range order] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:78 Friday 17 April 2026 17:28:03 -0400 (0:00:00.015) 0:00:14.090 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_tcp_client_ports is string", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert space_left_action rejects halt (space_action_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:87 Friday 17 April 2026 17:28:03 -0400 (0:00:00.013) 0:00:14.104 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert space_left percentage is between 1 and 99 when given as N%] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:93 Friday 17 April 2026 17:28:03 -0400 (0:00:00.014) 0:00:14.118 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "(auditd_space_left | string) is match('^[0-9]+%$')", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert admin_space_left percentage is between 1 and 99 when given as N%] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:105 Friday 17 April 2026 17:28:03 -0400 (0:00:00.014) 0:00:14.133 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "(auditd_admin_space_left | string) is match('^[0-9]+%$')", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert space_left is greater than admin_space_left when both use same form] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:117 Friday 17 April 2026 17:28:03 -0400 (0:00:00.014) 0:00:14.147 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert disk_full_action rejects email (disk_full_action_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:141 Friday 17 April 2026 17:28:03 -0400 (0:00:00.022) 0:00:14.170 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert disk_error_action rejects email and rotate (disk_error_action_parser)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:147 Friday 17 April 2026 17:28:03 -0400 (0:00:00.014) 0:00:14.185 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert exec companion paths when action is exec] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:153 Friday 17 April 2026 17:28:03 -0400 (0:00:00.014) 0:00:14.199 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_max_log_file_action | lower == 'exec'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert space_left_action exec path] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:160 Friday 17 April 2026 17:28:03 -0400 (0:00:00.010) 0:00:14.210 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_space_left_action | lower == 'exec'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert admin_space_left_action exec path] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:167 Friday 17 April 2026 17:28:03 -0400 (0:00:00.011) 0:00:14.222 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_admin_space_left_action | lower == 'exec'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert disk_full_action exec path] **** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:174 Friday 17 April 2026 17:28:03 -0400 (0:00:00.011) 0:00:14.233 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_disk_full_action | lower == 'exec'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert disk_error_action exec path] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:181 Friday 17 April 2026 17:28:03 -0400 (0:00:00.011) 0:00:14.245 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_disk_error_action | lower == 'exec'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert name when name_format is user (resolve_node)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:188 Friday 17 April 2026 17:28:03 -0400 (0:00:00.011) 0:00:14.256 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_name_format | lower == 'user'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert auditd_rules entries] ********** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:195 Friday 17 April 2026 17:28:03 -0400 (0:00:00.011) 0:00:14.268 ********** ok: [managed-node1] => (item=lsr_auditd_purge_test) => { "ansible_loop_var": "item", "changed": false, "item": { "file": "/etc/issue", "keyname": "lsr_auditd_purge_test", "permissions": [ "read" ] } } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert syscall rules include required keys] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:205 Friday 17 April 2026 17:28:03 -0400 (0:00:00.022) 0:00:14.290 ********** skipping: [managed-node1] => { "changed": false, "skipped_reason": "No items in the list" } TASK [fedora.linux_system_roles.auditd : Assert permission keys for file rules] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:216 Friday 17 April 2026 17:28:03 -0400 (0:00:00.014) 0:00:14.305 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Set platform/version specific variables] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:6 Friday 17 April 2026 17:28:03 -0400 (0:00:00.022) 0:00:14.327 ********** included: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.auditd : Ensure ansible_facts used by role] **** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:2 Friday 17 April 2026 17:28:03 -0400 (0:00:00.027) 0:00:14.355 ********** ok: [managed-node1] TASK [fedora.linux_system_roles.auditd : Check if system is ostree] ************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:10 Friday 17 April 2026 17:28:04 -0400 (0:00:00.526) 0:00:14.882 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "not __auditd_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Set flag to indicate system is ostree] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:15 Friday 17 April 2026 17:28:04 -0400 (0:00:00.015) 0:00:14.897 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "not __auditd_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Set platform/version specific variables] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:19 Friday 17 April 2026 17:28:04 -0400 (0:00:00.015) 0:00:14.913 ********** skipping: [managed-node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.auditd : Resolve package names for OS family] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:34 Friday 17 April 2026 17:28:04 -0400 (0:00:00.028) 0:00:14.941 ********** ok: [managed-node1] => { "ansible_facts": { "__auditd_packages": [ "audit" ] }, "changed": false } TASK [fedora.linux_system_roles.auditd : Install audit packages] *************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:9 Friday 17 April 2026 17:28:04 -0400 (0:00:00.014) 0:00:14.956 ********** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.auditd : Deploy auditd configuration] ********** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:15 Friday 17 April 2026 17:28:07 -0400 (0:00:02.787) 0:00:17.744 ********** ok: [managed-node1] => { "changed": false, "checksum": "33eefb6af1c751110a125b8b468118e6f0edb244", "dest": "/etc/audit/auditd.conf", "gid": 0, "group": "root", "mode": "0640", "owner": "root", "path": "/etc/audit/auditd.conf", "secontext": "system_u:object_r:auditd_etc_t:s0", "size": 852, "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.auditd : Ensure rules.d directory exists] ****** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:22 Friday 17 April 2026 17:28:07 -0400 (0:00:00.602) 0:00:18.346 ********** ok: [managed-node1] => { "changed": false, "gid": 0, "group": "root", "mode": "0750", "owner": "root", "path": "/etc/audit/rules.d", "secontext": "system_u:object_r:auditd_etc_t:s0", "size": 26, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.auditd : Purge rules.d when requested] ********* task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:28 Friday 17 April 2026 17:28:08 -0400 (0:00:00.320) 0:00:18.666 ********** included: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml for managed-node1 TASK [fedora.linux_system_roles.auditd : Discover files in rules.d] ************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:12 Friday 17 April 2026 17:28:08 -0400 (0:00:00.035) 0:00:18.702 ********** ok: [managed-node1] => { "changed": false, "examined": 1, "files": [ { "atime": 1776461282.2175584, "ctime": 1776461281.7835574, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 343933060, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0664", "mtime": 1776461281.5325568, "nlink": 1, "path": "/etc/audit/rules.d/custom.rules", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 312, "uid": 0, "wgrp": true, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 1, "skipped_paths": {} } MSG: All paths examined TASK [fedora.linux_system_roles.auditd : Stat existing custom.rules before purge] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:18 Friday 17 April 2026 17:28:08 -0400 (0:00:00.319) 0:00:19.022 ********** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776461282.2175584, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4f9017c3cb8f8ddf2a782812732781a02ca551eb", "ctime": 1776461281.7835574, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 343933060, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0664", "mtime": 1776461281.5325568, "nlink": 1, "path": "/etc/audit/rules.d/custom.rules", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 312, "uid": 0, "version": "3950867884", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.auditd : Read existing custom.rules for comparison] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:23 Friday 17 April 2026 17:28:08 -0400 (0:00:00.321) 0:00:19.344 ********** ok: [managed-node1] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCiMgc3lzdGVtX3JvbGU6YXVkaXRkCgoKIyBEZWxldGUgYWxsIHByZXZpb3VzIHJ1bGVzCi1ECiMgU2V0IGJ1ZmZlciBzaXplCi1iIDMyNzY4CiMgU2V0IGZhaWx1cmUgYmVoYXZpb3IKLWYgMQojIFNldCB0aGUgbWF4aW11bSBhbW91bnQgb2YgbWVzc2FnZXMgcGVyIHNlY29uZAotciA2MAojIFNldCBlbmFibGUgZmxhZyAoMD1kaXNhYmxlLCAxPWVuYWJsZSwgMj1sb2NrZWQsIHJlcXVpcmVzIHJlYm9vdCB0byB1bmxvY2spCi1lIDEKCi13IC9ldGMvaXNzdWUgLXAgciAtayBsc3JfYXVkaXRkX3B1cmdlX3Rlc3QK", "encoding": "base64", "source": "/etc/audit/rules.d/custom.rules" } TASK [fedora.linux_system_roles.auditd : Record whether to keep existing custom.rules (managed rules)] *** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:29 Friday 17 April 2026 17:28:09 -0400 (0:00:00.312) 0:00:19.656 ********** ok: [managed-node1] => { "ansible_facts": { "__auditd_purge_keep_custom_rules": true }, "changed": false } TASK [fedora.linux_system_roles.auditd : Remove files from rules.d] ************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:62 Friday 17 April 2026 17:28:09 -0400 (0:00:00.042) 0:00:19.699 ********** skipping: [managed-node1] => (item=/etc/audit/rules.d/custom.rules) => { "ansible_loop_var": "item", "changed": false, "false_condition": "not (\n (item.path | basename == 'custom.rules')\n and (__auditd_purge_keep_custom_rules | default(false) | bool)\n)", "item": { "atime": 1776461282.2175584, "ctime": 1776461281.7835574, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 343933060, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0664", "mtime": 1776461281.5325568, "nlink": 1, "path": "/etc/audit/rules.d/custom.rules", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 312, "uid": 0, "wgrp": true, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.auditd : Deploy custom audit rules] ************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:34 Friday 17 April 2026 17:28:09 -0400 (0:00:00.017) 0:00:19.717 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "not (__auditd_purge_keep_custom_rules | default(false) | bool)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Start and enable auditd service] ****** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:44 Friday 17 April 2026 17:28:09 -0400 (0:00:00.017) 0:00:19.734 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "auditd_start_service | bool", "skip_reason": "Conditional result was False" } TASK [Flush handlers after second role run] ************************************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:98 Friday 17 April 2026 17:28:09 -0400 (0:00:00.011) 0:00:19.746 ********** META: triggered running handlers for managed-node1 TASK [Stat custom.rules after second role run] ********************************* task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:101 Friday 17 April 2026 17:28:09 -0400 (0:00:00.000) 0:00:19.746 ********** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776461282.2175584, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d36697555eba276c9547cb7b31718d7ab6a8cea2b2ac74c41c41bbbdc64687cb", "ctime": 1776461281.7835574, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 343933060, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0664", "mtime": 1776461281.5325568, "nlink": 1, "path": "/etc/audit/rules.d/custom.rules", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 312, "uid": 0, "version": "3950867884", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify custom.rules unchanged on idempotent second run] ****************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:107 Friday 17 April 2026 17:28:09 -0400 (0:00:00.321) 0:00:20.068 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Stat decoy path after second run] **************************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:116 Friday 17 April 2026 17:28:09 -0400 (0:00:00.020) 0:00:20.088 ********** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [Verify decoy did not reappear] ******************************************* task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:121 Friday 17 April 2026 17:28:09 -0400 (0:00:00.312) 0:00:20.400 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Check whether purge test rules.d snapshot exists] ************************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:127 Friday 17 April 2026 17:28:09 -0400 (0:00:00.013) 0:00:20.414 ********** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776461273.0325403, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1776461273.0355403, "dev": 51713, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 281018560, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/directory", "mode": "0750", "mtime": 1776461273.0325403, "nlink": 2, "path": "/root/.lsr_auditd_purge_rulesd.backup", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 45, "uid": 0, "version": "1560119606", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": true, "xoth": false, "xusr": true } } TASK [Remove rules.d tree before restoring snapshot] *************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:135 Friday 17 April 2026 17:28:10 -0400 (0:00:00.316) 0:00:20.731 ********** changed: [managed-node1] => { "changed": true, "path": "/etc/audit/rules.d", "state": "absent" } TASK [Recreate empty rules.d directory] **************************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:140 Friday 17 April 2026 17:28:10 -0400 (0:00:00.323) 0:00:21.054 ********** changed: [managed-node1] => { "changed": true, "gid": 0, "group": "root", "mode": "0750", "owner": "root", "path": "/etc/audit/rules.d", "secontext": "unconfined_u:object_r:auditd_etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Copy snapshot back into rules.d] ***************************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:146 Friday 17 April 2026 17:28:10 -0400 (0:00:00.327) 0:00:21.381 ********** changed: [managed-node1] => { "changed": true, "checksum": null, "dest": "/etc/audit/rules.d/", "gid": 0, "group": "root", "md5sum": null, "mode": "0750", "owner": "root", "secontext": "unconfined_u:object_r:auditd_etc_t:s0", "size": 45, "src": "/root/.lsr_auditd_purge_rulesd.backup/", "state": "directory", "uid": 0 } TASK [Remove purge test rules.d snapshot directory on managed host] ************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:153 Friday 17 April 2026 17:28:11 -0400 (0:00:00.328) 0:00:21.710 ********** changed: [managed-node1] => { "changed": true, "path": "/root/.lsr_auditd_purge_rulesd.backup", "state": "absent" } TASK [Restore system state after purge test] *********************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:159 Friday 17 April 2026 17:28:11 -0400 (0:00:00.321) 0:00:22.032 ********** included: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml for managed-node1 TASK [Restore auditd.conf from integration test backup] ************************ task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:3 Friday 17 April 2026 17:28:11 -0400 (0:00:00.020) 0:00:22.052 ********** ok: [managed-node1] => { "changed": false, "checksum": "33eefb6af1c751110a125b8b468118e6f0edb244", "dest": "/etc/audit/auditd.conf", "gid": 0, "group": "root", "md5sum": "eda8c45ce09c30766469af2714e2eff9", "mode": "0640", "owner": "root", "secontext": "system_u:object_r:auditd_etc_t:s0", "size": 852, "src": "/root/.lsr_auditd_integration_auditd.conf.bak", "state": "file", "uid": 0 } TASK [Remove auditd.conf backup file] ****************************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:11 Friday 17 April 2026 17:28:11 -0400 (0:00:00.320) 0:00:22.373 ********** changed: [managed-node1] => { "changed": true, "path": "/root/.lsr_auditd_integration_auditd.conf.bak", "state": "absent" } TASK [Restore custom.rules from integration test backup] *********************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:17 Friday 17 April 2026 17:28:12 -0400 (0:00:00.320) 0:00:22.694 ********** ok: [managed-node1] => { "changed": false, "checksum": "69008de23bc363984514521ddc3cd86619715c09", "dest": "/etc/audit/rules.d/custom.rules", "gid": 0, "group": "root", "md5sum": "e3743c173f2e0ea45fbb3aa9853a278e", "mode": "0664", "owner": "root", "secontext": "unconfined_u:object_r:auditd_etc_t:s0", "size": 268, "src": "/root/.lsr_auditd_integration_custom.rules.bak", "state": "file", "uid": 0 } TASK [Remove custom.rules backup file] ***************************************** task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:25 Friday 17 April 2026 17:28:12 -0400 (0:00:00.321) 0:00:23.015 ********** changed: [managed-node1] => { "changed": true, "path": "/root/.lsr_auditd_integration_custom.rules.bak", "state": "absent" } TASK [Remove custom.rules if it did not exist before test] ********************* task path: /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:31 Friday 17 April 2026 17:28:12 -0400 (0:00:00.320) 0:00:23.336 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "not __auditd_integration_had_custom_rules | bool", "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* managed-node1 : ok=97 changed=14 unreachable=0 failed=0 skipped=34 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Friday 17 April 2026 17:28:12 -0400 (0:00:00.010) 0:00:23.346 ********** =============================================================================== fedora.linux_system_roles.auditd : Install audit packages --------------- 2.93s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:9 fedora.linux_system_roles.auditd : Install audit packages --------------- 2.79s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:9 Gathering Facts --------------------------------------------------------- 1.01s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:5 fedora.linux_system_roles.auditd : Remove files from rules.d ------------ 0.97s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:62 fedora.linux_system_roles.auditd : Deploy custom audit rules ------------ 0.65s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:34 fedora.linux_system_roles.auditd : Deploy auditd configuration ---------- 0.60s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:15 fedora.linux_system_roles.auditd : Deploy auditd configuration ---------- 0.60s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:15 Install decoy rules fragment to be removed by purge --------------------- 0.59s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:34 fedora.linux_system_roles.auditd : Ensure ansible_facts used by role ---- 0.53s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:2 fedora.linux_system_roles.auditd : Ensure ansible_facts used by role ---- 0.52s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:2 fedora.linux_system_roles.auditd : Run augenrules ----------------------- 0.43s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/handlers/main.yml:3 Back up auditd.conf before test ----------------------------------------- 0.42s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:21 fedora.linux_system_roles.auditd : Discover files in rules.d ------------ 0.41s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:12 Ensure rules.d backup parent directory is absent ------------------------ 0.41s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:16 Check for existing auditd.conf ------------------------------------------ 0.41s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:7 fedora.linux_system_roles.auditd : Read existing custom.rules for comparison --- 0.40s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:23 Copy snapshot back into rules.d ----------------------------------------- 0.33s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:146 fedora.linux_system_roles.auditd : Stat existing custom.rules before purge --- 0.33s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:18 Recreate empty rules.d directory ---------------------------------------- 0.33s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:140 Capture checksum of custom.rules before second role run ----------------- 0.32s /tmp/collections-mT5/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:80