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-jbc 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-jbc/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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:5 Thursday 16 April 2026 11:33:37 -0400 (0:00:00.025) 0:00:00.025 ******** ok: [managed-node1] TASK [Back up existing auditd configuration and rules metadata] **************** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:13 Thursday 16 April 2026 11:33:38 -0400 (0:00:01.026) 0:00:01.052 ******** included: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml for managed-node1 TASK [Check for existing auditd.conf] ****************************************** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:7 Thursday 16 April 2026 11:33:38 -0400 (0:00:00.053) 0:00:01.105 ******** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776353599.0487087, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a93cfc6889d0a3dfd87548eac330576e1146dbe7", "ctime": 1776353595.213709, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 159383746, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1776353594.8647091, "nlink": 1, "path": "/etc/audit/auditd.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 880, "uid": 0, "version": "3351041388", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check for existing custom.rules] ***************************************** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:12 Thursday 16 April 2026 11:33:38 -0400 (0:00:00.421) 0:00:01.526 ******** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776353597.7787087, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "69008de23bc363984514521ddc3cd86619715c09", "ctime": 1776353596.3037088, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169869506, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0664", "mtime": 1776353596.053709, "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": "3379142685", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Remember whether custom.rules existed] *********************************** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:17 Thursday 16 April 2026 11:33:39 -0400 (0:00:00.327) 0:00:01.854 ******** ok: [managed-node1] => { "ansible_facts": { "__auditd_integration_had_custom_rules": true }, "changed": false } TASK [Back up auditd.conf before test] ***************************************** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:21 Thursday 16 April 2026 11:33:39 -0400 (0:00:00.014) 0:00:01.869 ******** changed: [managed-node1] => { "changed": true, "checksum": "a93cfc6889d0a3dfd87548eac330576e1146dbe7", "dest": "/root/.lsr_auditd_integration_auditd.conf.bak", "gid": 0, "group": "root", "md5sum": "92e833ed88010f0e8de83378e762d4c2", "mode": "0640", "owner": "root", "secontext": "system_u:object_r:admin_home_t:s0", "size": 880, "src": "/etc/audit/auditd.conf", "state": "file", "uid": 0 } TASK [Back up custom.rules before test] **************************************** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:29 Thursday 16 April 2026 11:33:39 -0400 (0:00:00.427) 0:00:02.297 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:37 Thursday 16 April 2026 11:33:39 -0400 (0:00:00.331) 0:00:02.628 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:42 Thursday 16 April 2026 11:33:39 -0400 (0:00:00.014) 0:00:02.642 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:16 Thursday 16 April 2026 11:33:39 -0400 (0:00:00.014) 0:00:02.657 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:21 Thursday 16 April 2026 11:33:40 -0400 (0:00:00.427) 0:00:03.084 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:27 Thursday 16 April 2026 11:33:40 -0400 (0:00:00.329) 0:00:03.413 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:34 Thursday 16 April 2026 11:33:40 -0400 (0:00:00.329) 0:00:03.743 ******** 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-1776353620.9770896-9621-193274815568654/source", "state": "file", "uid": 0 } TASK [Run auditd role with purge enabled] ************************************** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:42 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.611) 0:00:04.354 ******** included: /tmp/collections-jbc/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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:9 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.020) 0:00:04.374 ******** META: facts cleared TASK [Run the role] ************************************************************ task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:23 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.000) 0:00:04.375 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:33 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.015) 0:00:04.390 ******** TASK [fedora.linux_system_roles.auditd : Validating arguments against arg spec 'main' - Manage auditd and audit rules] *** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:5 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.069) 0:00:04.460 ******** ok: [managed-node1] => { "changed": false, "validate_args_context": { "argument_spec_name": "main", "name": "auditd", "path": "/tmp/collections-jbc/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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:3 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.015) 0:00:04.475 ******** included: /tmp/collections-jbc/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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:4 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.026) 0:00:04.502 ******** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert freq range (freq_parser)] ****** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:11 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.016) 0:00:04.518 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:18 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.016) 0:00:04.535 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:25 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.015) 0:00:04.550 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:31 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.015) 0:00:04.566 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:38 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.016) 0:00:04.583 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:44 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.019) 0:00:04.603 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:50 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.015) 0:00:04.619 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:56 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.015) 0:00:04.634 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:62 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.015) 0:00:04.650 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:68 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.016) 0:00:04.666 ******** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert tcp_client_ports range order] *** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:76 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.019) 0:00:04.686 ******** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert space_left_action rejects halt (space_action_parser)] *** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:83 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.019) 0:00:04.706 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:89 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.014) 0:00:04.720 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:95 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.015) 0:00:04.736 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:101 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.014) 0:00:04.751 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:108 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.012) 0:00:04.763 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:115 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.012) 0:00:04.776 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:122 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.012) 0:00:04.789 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:129 Thursday 16 April 2026 11:33:41 -0400 (0:00:00.012) 0:00:04.801 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:136 Thursday 16 April 2026 11:33:42 -0400 (0:00:00.011) 0:00:04.813 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:143 Thursday 16 April 2026 11:33:42 -0400 (0:00:00.012) 0:00:04.825 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:153 Thursday 16 April 2026 11:33:42 -0400 (0:00:00.023) 0:00:04.849 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:164 Thursday 16 April 2026 11:33:42 -0400 (0:00:00.016) 0:00:04.866 ******** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Set platform/version specific variables] *** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:6 Thursday 16 April 2026 11:33:42 -0400 (0:00:00.023) 0:00:04.889 ******** included: /tmp/collections-jbc/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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:2 Thursday 16 April 2026 11:33:42 -0400 (0:00:00.027) 0:00:04.916 ******** ok: [managed-node1] TASK [fedora.linux_system_roles.auditd : Check if system is ostree] ************ task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:10 Thursday 16 April 2026 11:33:42 -0400 (0:00:00.534) 0:00:05.451 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:15 Thursday 16 April 2026 11:33:42 -0400 (0:00:00.321) 0:00:05.772 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:19 Thursday 16 April 2026 11:33:42 -0400 (0:00:00.020) 0:00:05.792 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:34 Thursday 16 April 2026 11:33:43 -0400 (0:00:00.029) 0:00:05.821 ******** ok: [managed-node1] => { "ansible_facts": { "__auditd_packages": [ "audit" ] }, "changed": false } TASK [fedora.linux_system_roles.auditd : Install audit packages] *************** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:9 Thursday 16 April 2026 11:33:43 -0400 (0:00:00.015) 0:00:05.837 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:15 Thursday 16 April 2026 11:33:45 -0400 (0:00:02.935) 0:00:08.773 ******** ok: [managed-node1] => { "changed": false, "checksum": "a93cfc6889d0a3dfd87548eac330576e1146dbe7", "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": 880, "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.auditd : Ensure rules.d directory exists] ****** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:22 Thursday 16 April 2026 11:33:46 -0400 (0:00:00.607) 0:00:09.380 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:28 Thursday 16 April 2026 11:33:46 -0400 (0:00:00.333) 0:00:09.713 ******** included: /tmp/collections-jbc/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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:12 Thursday 16 April 2026 11:33:46 -0400 (0:00:00.035) 0:00:09.749 ******** ok: [managed-node1] => { "changed": false, "examined": 3, "files": [ { "atime": 1776353417.525, "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": 1776353597.7787087, "ctime": 1776353596.3037088, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 169869506, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0664", "mtime": 1776353596.053709, "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": 1776353621.5017064, "ctime": 1776353621.5047064, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 272629954, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1776353621.2567065, "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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:18 Thursday 16 April 2026 11:33:47 -0400 (0:00:00.428) 0:00:10.178 ******** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776353597.7787087, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "69008de23bc363984514521ddc3cd86619715c09", "ctime": 1776353596.3037088, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169869506, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0664", "mtime": 1776353596.053709, "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": "3379142685", "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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:23 Thursday 16 April 2026 11:33:47 -0400 (0:00:00.334) 0:00:10.513 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:29 Thursday 16 April 2026 11:33:48 -0400 (0:00:00.418) 0:00:10.931 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:62 Thursday 16 April 2026 11:33:48 -0400 (0:00:00.042) 0:00:10.974 ******** changed: [managed-node1] => (item=/etc/audit/rules.d/audit.rules) => { "ansible_loop_var": "item", "changed": true, "item": { "atime": 1776353417.525, "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": 1776353597.7787087, "ctime": 1776353596.3037088, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 169869506, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0664", "mtime": 1776353596.053709, "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": 1776353621.5017064, "ctime": 1776353621.5047064, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 272629954, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1776353621.2567065, "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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:34 Thursday 16 April 2026 11:33:49 -0400 (0:00:00.971) 0:00:11.945 ******** 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-1776353629.1843889-9791-168567224361977/source", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.auditd : Start and enable auditd service] ****** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:44 Thursday 16 April 2026 11:33:49 -0400 (0:00:00.652) 0:00:12.597 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:54 Thursday 16 April 2026 11:33:49 -0400 (0:00:00.012) 0:00:12.610 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/handlers/main.yml:3 Thursday 16 April 2026 11:33:49 -0400 (0:00:00.001) 0:00:12.611 ******** NOTIFIED HANDLER fedora.linux_system_roles.auditd : Load audit rules for managed-node1 changed: [managed-node1] => { "changed": true, "cmd": [ "augenrules" ], "delta": "0:00:00.018020", "end": "2026-04-16 11:33:50.206261", "rc": 0, "start": "2026-04-16 11:33:50.188241" } RUNNING HANDLER [fedora.linux_system_roles.auditd : Load audit rules] ********** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/handlers/main.yml:9 Thursday 16 April 2026 11:33:50 -0400 (0:00:00.439) 0:00:13.051 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:57 Thursday 16 April 2026 11:33:50 -0400 (0:00:00.013) 0:00:13.064 ******** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [Verify decoy rules file was purged] ************************************** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:62 Thursday 16 April 2026 11:33:50 -0400 (0:00:00.314) 0:00:13.378 ******** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Read custom.rules after purge] ******************************************* task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:67 Thursday 16 April 2026 11:33:50 -0400 (0:00:00.013) 0:00:13.392 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:72 Thursday 16 April 2026 11:33:50 -0400 (0:00:00.313) 0:00:13.705 ******** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Capture checksum of custom.rules before second role run] ***************** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:80 Thursday 16 April 2026 11:33:50 -0400 (0:00:00.017) 0:00:13.723 ******** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776353630.1947064, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d36697555eba276c9547cb7b31718d7ab6a8cea2b2ac74c41c41bbbdc64687cb", "ctime": 1776353629.7527063, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 329252997, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0664", "mtime": 1776353629.4967062, "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": "1648012147", "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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:86 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.327) 0:00:14.050 ******** included: /tmp/collections-jbc/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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:9 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.018) 0:00:14.069 ******** META: facts cleared TASK [Run the role] ************************************************************ task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:23 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.000) 0:00:14.070 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:33 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.015) 0:00:14.086 ******** TASK [fedora.linux_system_roles.auditd : Validating arguments against arg spec 'main' - Manage auditd and audit rules] *** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:5 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.029) 0:00:14.115 ******** ok: [managed-node1] => { "changed": false, "validate_args_context": { "argument_spec_name": "main", "name": "auditd", "path": "/tmp/collections-jbc/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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:3 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.014) 0:00:14.130 ******** included: /tmp/collections-jbc/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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:4 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.023) 0:00:14.154 ******** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert freq range (freq_parser)] ****** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:11 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.017) 0:00:14.172 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:18 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.016) 0:00:14.188 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:25 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.017) 0:00:14.205 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:31 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.017) 0:00:14.223 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:38 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.017) 0:00:14.241 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:44 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.017) 0:00:14.258 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:50 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.016) 0:00:14.274 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:56 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.016) 0:00:14.291 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:62 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.016) 0:00:14.308 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:68 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.016) 0:00:14.324 ******** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert tcp_client_ports range order] *** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:76 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.020) 0:00:14.345 ******** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert space_left_action rejects halt (space_action_parser)] *** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:83 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.020) 0:00:14.365 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:89 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.014) 0:00:14.380 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:95 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.015) 0:00:14.395 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:101 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.016) 0:00:14.412 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:108 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.012) 0:00:14.424 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:115 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.014) 0:00:14.439 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:122 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.014) 0:00:14.453 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:129 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.013) 0:00:14.466 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:136 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.013) 0:00:14.479 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:143 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.012) 0:00:14.492 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:153 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.025) 0:00:14.517 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:164 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.017) 0:00:14.534 ******** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Set platform/version specific variables] *** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:6 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.024) 0:00:14.559 ******** included: /tmp/collections-jbc/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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:2 Thursday 16 April 2026 11:33:51 -0400 (0:00:00.027) 0:00:14.586 ******** ok: [managed-node1] TASK [fedora.linux_system_roles.auditd : Check if system is ostree] ************ task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:10 Thursday 16 April 2026 11:33:52 -0400 (0:00:00.534) 0:00:15.121 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:15 Thursday 16 April 2026 11:33:52 -0400 (0:00:00.016) 0:00:15.137 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:19 Thursday 16 April 2026 11:33:52 -0400 (0:00:00.015) 0:00:15.153 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:34 Thursday 16 April 2026 11:33:52 -0400 (0:00:00.030) 0:00:15.184 ******** ok: [managed-node1] => { "ansible_facts": { "__auditd_packages": [ "audit" ] }, "changed": false } TASK [fedora.linux_system_roles.auditd : Install audit packages] *************** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:9 Thursday 16 April 2026 11:33:52 -0400 (0:00:00.015) 0:00:15.199 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:15 Thursday 16 April 2026 11:33:55 -0400 (0:00:02.789) 0:00:17.989 ******** ok: [managed-node1] => { "changed": false, "checksum": "a93cfc6889d0a3dfd87548eac330576e1146dbe7", "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": 880, "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.auditd : Ensure rules.d directory exists] ****** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:22 Thursday 16 April 2026 11:33:55 -0400 (0:00:00.599) 0:00:18.589 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:28 Thursday 16 April 2026 11:33:56 -0400 (0:00:00.331) 0:00:18.921 ******** included: /tmp/collections-jbc/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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:12 Thursday 16 April 2026 11:33:56 -0400 (0:00:00.034) 0:00:18.955 ******** ok: [managed-node1] => { "changed": false, "examined": 1, "files": [ { "atime": 1776353630.1947064, "ctime": 1776353629.7527063, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 329252997, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0664", "mtime": 1776353629.4967062, "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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:18 Thursday 16 April 2026 11:33:56 -0400 (0:00:00.319) 0:00:19.275 ******** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776353630.1947064, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4f9017c3cb8f8ddf2a782812732781a02ca551eb", "ctime": 1776353629.7527063, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 329252997, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0664", "mtime": 1776353629.4967062, "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": "1648012147", "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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:23 Thursday 16 April 2026 11:33:56 -0400 (0:00:00.328) 0:00:19.604 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:29 Thursday 16 April 2026 11:33:57 -0400 (0:00:00.320) 0:00:19.924 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:62 Thursday 16 April 2026 11:33:57 -0400 (0:00:00.042) 0:00:19.966 ******** 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": 1776353630.1947064, "ctime": 1776353629.7527063, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 329252997, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0664", "mtime": 1776353629.4967062, "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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:34 Thursday 16 April 2026 11:33:57 -0400 (0:00:00.020) 0:00:19.987 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:44 Thursday 16 April 2026 11:33:57 -0400 (0:00:00.014) 0:00:20.002 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:98 Thursday 16 April 2026 11:33:57 -0400 (0:00:00.013) 0:00:20.016 ******** META: triggered running handlers for managed-node1 TASK [Stat custom.rules after second role run] ********************************* task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:101 Thursday 16 April 2026 11:33:57 -0400 (0:00:00.000) 0:00:20.016 ******** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776353630.1947064, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d36697555eba276c9547cb7b31718d7ab6a8cea2b2ac74c41c41bbbdc64687cb", "ctime": 1776353629.7527063, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 329252997, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0664", "mtime": 1776353629.4967062, "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": "1648012147", "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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:107 Thursday 16 April 2026 11:33:57 -0400 (0:00:00.325) 0:00:20.341 ******** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Stat decoy path after second run] **************************************** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:116 Thursday 16 April 2026 11:33:57 -0400 (0:00:00.022) 0:00:20.364 ******** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [Verify decoy did not reappear] ******************************************* task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:121 Thursday 16 April 2026 11:33:57 -0400 (0:00:00.316) 0:00:20.680 ******** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Check whether purge test rules.d snapshot exists] ************************ task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:127 Thursday 16 April 2026 11:33:57 -0400 (0:00:00.014) 0:00:20.695 ******** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776353620.8967063, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1776353620.8997064, "dev": 51713, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 266338496, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/directory", "mode": "0750", "mtime": 1776353620.8967063, "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": "276681375", "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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:135 Thursday 16 April 2026 11:33:58 -0400 (0:00:00.323) 0:00:21.019 ******** changed: [managed-node1] => { "changed": true, "path": "/etc/audit/rules.d", "state": "absent" } TASK [Recreate empty rules.d directory] **************************************** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:140 Thursday 16 April 2026 11:33:58 -0400 (0:00:00.328) 0:00:21.347 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:146 Thursday 16 April 2026 11:33:58 -0400 (0:00:00.330) 0:00:21.677 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:153 Thursday 16 April 2026 11:33:59 -0400 (0:00:00.327) 0:00:22.005 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:159 Thursday 16 April 2026 11:33:59 -0400 (0:00:00.323) 0:00:22.328 ******** included: /tmp/collections-jbc/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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:3 Thursday 16 April 2026 11:33:59 -0400 (0:00:00.020) 0:00:22.348 ******** ok: [managed-node1] => { "changed": false, "checksum": "a93cfc6889d0a3dfd87548eac330576e1146dbe7", "dest": "/etc/audit/auditd.conf", "gid": 0, "group": "root", "md5sum": "92e833ed88010f0e8de83378e762d4c2", "mode": "0640", "owner": "root", "secontext": "system_u:object_r:auditd_etc_t:s0", "size": 880, "src": "/root/.lsr_auditd_integration_auditd.conf.bak", "state": "file", "uid": 0 } TASK [Remove auditd.conf backup file] ****************************************** task path: /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:11 Thursday 16 April 2026 11:33:59 -0400 (0:00:00.327) 0:00:22.676 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:17 Thursday 16 April 2026 11:34:00 -0400 (0:00:00.330) 0:00:23.007 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:25 Thursday 16 April 2026 11:34:00 -0400 (0:00:00.334) 0:00:23.341 ******** 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-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:31 Thursday 16 April 2026 11:34:00 -0400 (0:00:00.331) 0:00:23.673 ******** 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=99 changed=14 unreachable=0 failed=0 skipped=26 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Thursday 16 April 2026 11:34:00 -0400 (0:00:00.012) 0:00:23.685 ******** =============================================================================== fedora.linux_system_roles.auditd : Install audit packages --------------- 2.94s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:9 fedora.linux_system_roles.auditd : Install audit packages --------------- 2.79s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:9 Gathering Facts --------------------------------------------------------- 1.03s /tmp/collections-jbc/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-jbc/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-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:34 Install decoy rules fragment to be removed by purge --------------------- 0.61s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:34 fedora.linux_system_roles.auditd : Deploy auditd configuration ---------- 0.61s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:15 fedora.linux_system_roles.auditd : Deploy auditd configuration ---------- 0.60s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:15 fedora.linux_system_roles.auditd : Ensure ansible_facts used by role ---- 0.53s /tmp/collections-jbc/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.53s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/set_vars.yml:2 fedora.linux_system_roles.auditd : Run augenrules ----------------------- 0.44s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/handlers/main.yml:3 fedora.linux_system_roles.auditd : Discover files in rules.d ------------ 0.43s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:12 Back up auditd.conf before test ----------------------------------------- 0.43s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:21 Ensure rules.d backup parent directory is absent ------------------------ 0.43s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_purge_rules.yml:16 Check for existing auditd.conf ------------------------------------------ 0.42s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:7 fedora.linux_system_roles.auditd : Read existing custom.rules for comparison --- 0.42s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:23 fedora.linux_system_roles.auditd : Stat existing custom.rules before purge --- 0.33s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/purge_rules.yml:18 Restore custom.rules from integration test backup ----------------------- 0.33s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:17 fedora.linux_system_roles.auditd : Ensure rules.d directory exists ------ 0.33s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:22 fedora.linux_system_roles.auditd : Ensure rules.d directory exists ------ 0.33s /tmp/collections-jbc/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:22