ansible-playbook [core 2.17.14] 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-Xh2 executable location = /usr/local/bin/ansible-playbook python version = 3.12.12 (main, Mar 27 2026, 00:00:00) [GCC 14.3.1 20251022 (Red Hat 14.3.1-4)] (/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_auditd_integration.yml ***************************************** 1 plays in /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml PLAY [Integration test for linux-system-roles.auditd] ************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:4 Tuesday 21 April 2026 21:25:03 -0400 (0:00:00.021) 0:00:00.021 ********* [WARNING]: Platform linux on host managed-node1 is using the discovered Python interpreter at /usr/bin/python3.12, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node1] TASK [Back up existing auditd configuration and rules] ************************* task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:9 Tuesday 21 April 2026 21:25:05 -0400 (0:00:02.338) 0:00:02.359 ********* included: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml for managed-node1 TASK [Check for existing auditd.conf] ****************************************** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:7 Tuesday 21 April 2026 21:25:05 -0400 (0:00:00.015) 0:00:02.375 ********* ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776755861.525, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "92826a0a4167a0ec9df5fc3f743dd551e25be805", "ctime": 1776755377.782, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 14177917, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1767657600.0, "nlink": 1, "path": "/etc/audit/auditd.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 882, "uid": 0, "version": "2331219192", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check for existing custom.rules] ***************************************** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:12 Tuesday 21 April 2026 21:25:06 -0400 (0:00:00.450) 0:00:02.826 ********* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [Remember whether custom.rules existed] *********************************** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:17 Tuesday 21 April 2026 21:25:06 -0400 (0:00:00.339) 0:00:03.165 ********* ok: [managed-node1] => { "ansible_facts": { "__auditd_integration_had_custom_rules": false }, "changed": false } TASK [Back up auditd.conf before test] ***************************************** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:21 Tuesday 21 April 2026 21:25:06 -0400 (0:00:00.014) 0:00:03.180 ********* changed: [managed-node1] => { "changed": true, "checksum": "92826a0a4167a0ec9df5fc3f743dd551e25be805", "dest": "/root/.lsr_auditd_integration_auditd.conf.bak", "gid": 0, "group": "root", "md5sum": "fd5c639b8b1bd57c486dab75985ad9af", "mode": "0640", "owner": "root", "secontext": "system_u:object_r:admin_home_t:s0", "size": 882, "src": "/etc/audit/auditd.conf", "state": "file", "uid": 0 } TASK [Back up custom.rules before test] **************************************** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:29 Tuesday 21 April 2026 21:25:06 -0400 (0:00:00.434) 0:00:03.614 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__auditd_integration_stat_rules.stat.exists", "skip_reason": "Conditional result was False" } TASK [Record auditd.conf backup path for cleanup] ****************************** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:37 Tuesday 21 April 2026 21:25:06 -0400 (0:00:00.014) 0:00:03.629 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:42 Tuesday 21 April 2026 21:25:06 -0400 (0:00:00.013) 0:00:03.643 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__auditd_integration_stat_rules.stat.exists", "skip_reason": "Conditional result was False" } TASK [Run auditd role with non-default settings] ******************************* task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:12 Tuesday 21 April 2026 21:25:06 -0400 (0:00:00.010) 0:00:03.653 ********* included: /tmp/collections-Xh2/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-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:9 Tuesday 21 April 2026 21:25:06 -0400 (0:00:00.016) 0:00:03.670 ********* META: facts cleared TASK [Run the role] ************************************************************ task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:23 Tuesday 21 April 2026 21:25:06 -0400 (0:00:00.000) 0:00:03.671 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:33 Tuesday 21 April 2026 21:25:06 -0400 (0:00:00.013) 0:00:03.684 ********* included: fedora.linux_system_roles.auditd for managed-node1 TASK [fedora.linux_system_roles.auditd : Validating arguments against arg spec 'main' - Manage auditd and audit rules] *** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:4 Tuesday 21 April 2026 21:25:06 -0400 (0:00:00.062) 0:00:03.747 ********* ok: [managed-node1] => { "changed": false, "validate_args_context": { "argument_spec_name": "main", "name": "auditd", "path": "/tmp/collections-Xh2/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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:3 Tuesday 21 April 2026 21:25:06 -0400 (0:00:00.014) 0:00:03.761 ********* included: /tmp/collections-Xh2/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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:4 Tuesday 21 April 2026 21:25:06 -0400 (0:00:00.026) 0:00:03.788 ********* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert freq range (freq_parser)] ****** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:11 Tuesday 21 April 2026 21:25:06 -0400 (0:00:00.014) 0:00:03.802 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:18 Tuesday 21 April 2026 21:25:06 -0400 (0:00:00.014) 0:00:03.816 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:25 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.014) 0:00:03.831 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:31 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.015) 0:00:03.847 ********* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert auditd_maximum_rate is null or a non-negative integer] *** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:38 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.015) 0:00:03.862 ********* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert auditd_backlog_wait_time is null or a non-negative integer] *** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:48 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.019) 0:00:03.881 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:58 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.020) 0:00:03.902 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:64 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.014) 0:00:03.917 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:70 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.014) 0:00:03.931 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:76 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.014) 0:00:03.945 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:82 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.015) 0:00:03.961 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:88 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.013) 0:00:03.974 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:98 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.017) 0:00:03.992 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:107 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.018) 0:00:04.011 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:113 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.013) 0:00:04.024 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:125 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.013) 0:00:04.037 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:137 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.013) 0:00:04.051 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:161 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.021) 0:00:04.072 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:167 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.014) 0:00:04.087 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:173 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.013) 0:00:04.100 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:180 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.011) 0:00:04.112 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:187 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.010) 0:00:04.123 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:194 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.011) 0:00:04.134 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:201 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.010) 0:00:04.145 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:208 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.010) 0:00:04.155 ********* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Validate auditd_rules structure and values] *** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:215 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.015) 0:00:04.171 ********* included: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml for managed-node1 TASK [fedora.linux_system_roles.auditd : Assert auditd_rules is a list of dicts] *** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:4 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.034) 0:00:04.205 ********* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert each auditd_rules entry has required action and filter] *** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:13 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.020) 0:00:04.226 ********* ok: [managed-node1] => (item=never,filesystem) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "never", "field": "fstype=debugfs", "filter": "filesystem", "keyname": "lsr_fs_dbg" } } MSG: All assertions passed ok: [managed-node1] => (item=always,io_uring) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "filter": "io_uring", "keyname": "lsr_io_uring", "syscall": [ "openat", "openat2" ] } } MSG: All assertions passed ok: [managed-node1] => (item=always,exit) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "nowarn", "filter": "exit", "keyname": "lsr_arch_nw", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item=always,exit) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": [ "b32", "b64" ], "filter": "exit", "keyname": "lsr_arch_pair", "syscall": "read" } } MSG: All assertions passed ok: [managed-node1] => (item=always,exit) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "filter": "exit", "keyname": "lsr_path_nw", "path": "/etc/hosts", "permission": "nowarn", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item=always,exit) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "dir": "/etc/ssh", "filter": "exit", "keyname": "lsr_dir_one_perm", "permission": "read", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item=always,exit) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "dir": "/tmp", "filter": "exit", "keyname": "lsr_dir_many_perm", "permission": [ "read", "write" ], "syscall": "openat" } } MSG: All assertions passed ok: [managed-node1] => (item=always,exit) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "filter": "exit", "keyname": "lsr_sc_list", "syscall": [ "open", "close" ] } } MSG: All assertions passed ok: [managed-node1] => (item=always,exit) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "field": [ "success=1", "auid!=-1", "exit<-1", "gid>10", "euid<=65534", "pid>=0", "a1&0100", "a2&=0200" ], "filter": "exit", "keyname": [ "lsr_ops", "lsr_ops2", "lsr_ops3" ], "path": "/etc/issue", "permission": "read", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item=always,exit) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "filter": "exit", "keyname": [ "kk1", "kk2" ], "syscall": "dup" } } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert auditd_rules entries use only supported keys] *** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:29 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.106) 0:00:04.332 ********* ok: [managed-node1] => (item={'action': 'never', 'filter': 'filesystem', 'field': 'fstype=debugfs', 'keyname': 'lsr_fs_dbg'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "never", "field": "fstype=debugfs", "filter": "filesystem", "keyname": "lsr_fs_dbg" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'io_uring', 'syscall': ['openat', 'openat2'], 'keyname': 'lsr_io_uring'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "filter": "io_uring", "keyname": "lsr_io_uring", "syscall": [ "openat", "openat2" ] } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'nowarn', 'syscall': 'open', 'keyname': 'lsr_arch_nw'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "nowarn", "filter": "exit", "keyname": "lsr_arch_nw", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': ['b32', 'b64'], 'syscall': 'read', 'keyname': 'lsr_arch_pair'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": [ "b32", "b64" ], "filter": "exit", "keyname": "lsr_arch_pair", "syscall": "read" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'open', 'path': '/etc/hosts', 'permission': 'nowarn', 'keyname': 'lsr_path_nw'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "filter": "exit", "keyname": "lsr_path_nw", "path": "/etc/hosts", "permission": "nowarn", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'open', 'dir': '/etc/ssh', 'permission': 'read', 'keyname': 'lsr_dir_one_perm'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "dir": "/etc/ssh", "filter": "exit", "keyname": "lsr_dir_one_perm", "permission": "read", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'openat', 'dir': '/tmp', 'permission': ['read', 'write'], 'keyname': 'lsr_dir_many_perm'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "dir": "/tmp", "filter": "exit", "keyname": "lsr_dir_many_perm", "permission": [ "read", "write" ], "syscall": "openat" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': ['open', 'close'], 'keyname': 'lsr_sc_list'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "filter": "exit", "keyname": "lsr_sc_list", "syscall": [ "open", "close" ] } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'open', 'path': '/etc/issue', 'permission': 'read', 'field': ['success=1', 'auid!=-1', 'exit<-1', 'gid>10', 'euid<=65534', 'pid>=0', 'a1&0100', 'a2&=0200'], 'keyname': ['lsr_ops', 'lsr_ops2', 'lsr_ops3']}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "field": [ "success=1", "auid!=-1", "exit<-1", "gid>10", "euid<=65534", "pid>=0", "a1&0100", "a2&=0200" ], "filter": "exit", "keyname": [ "lsr_ops", "lsr_ops2", "lsr_ops3" ], "path": "/etc/issue", "permission": "read", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'dup', 'keyname': ['kk1', 'kk2']}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "filter": "exit", "keyname": [ "kk1", "kk2" ], "syscall": "dup" } } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert auditd_rules path and dir are mutually exclusive] *** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:49 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.099) 0:00:04.432 ********* ok: [managed-node1] => (item={'action': 'never', 'filter': 'filesystem', 'field': 'fstype=debugfs', 'keyname': 'lsr_fs_dbg'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "never", "field": "fstype=debugfs", "filter": "filesystem", "keyname": "lsr_fs_dbg" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'io_uring', 'syscall': ['openat', 'openat2'], 'keyname': 'lsr_io_uring'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "filter": "io_uring", "keyname": "lsr_io_uring", "syscall": [ "openat", "openat2" ] } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'nowarn', 'syscall': 'open', 'keyname': 'lsr_arch_nw'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "nowarn", "filter": "exit", "keyname": "lsr_arch_nw", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': ['b32', 'b64'], 'syscall': 'read', 'keyname': 'lsr_arch_pair'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": [ "b32", "b64" ], "filter": "exit", "keyname": "lsr_arch_pair", "syscall": "read" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'open', 'path': '/etc/hosts', 'permission': 'nowarn', 'keyname': 'lsr_path_nw'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "filter": "exit", "keyname": "lsr_path_nw", "path": "/etc/hosts", "permission": "nowarn", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'open', 'dir': '/etc/ssh', 'permission': 'read', 'keyname': 'lsr_dir_one_perm'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "dir": "/etc/ssh", "filter": "exit", "keyname": "lsr_dir_one_perm", "permission": "read", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'openat', 'dir': '/tmp', 'permission': ['read', 'write'], 'keyname': 'lsr_dir_many_perm'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "dir": "/tmp", "filter": "exit", "keyname": "lsr_dir_many_perm", "permission": [ "read", "write" ], "syscall": "openat" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': ['open', 'close'], 'keyname': 'lsr_sc_list'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "filter": "exit", "keyname": "lsr_sc_list", "syscall": [ "open", "close" ] } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'open', 'path': '/etc/issue', 'permission': 'read', 'field': ['success=1', 'auid!=-1', 'exit<-1', 'gid>10', 'euid<=65534', 'pid>=0', 'a1&0100', 'a2&=0200'], 'keyname': ['lsr_ops', 'lsr_ops2', 'lsr_ops3']}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "field": [ "success=1", "auid!=-1", "exit<-1", "gid>10", "euid<=65534", "pid>=0", "a1&0100", "a2&=0200" ], "filter": "exit", "keyname": [ "lsr_ops", "lsr_ops2", "lsr_ops3" ], "path": "/etc/issue", "permission": "read", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'dup', 'keyname': ['kk1', 'kk2']}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "filter": "exit", "keyname": [ "kk1", "kk2" ], "syscall": "dup" } } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert auditd_rules path or dir requires filter exit] *** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:56 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.064) 0:00:04.496 ********* skipping: [managed-node1] => (item={'action': 'never', 'filter': 'filesystem', 'field': 'fstype=debugfs', 'keyname': 'lsr_fs_dbg'}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "(item.path is defined) or (item.dir is defined)", "item": { "action": "never", "field": "fstype=debugfs", "filter": "filesystem", "keyname": "lsr_fs_dbg" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={'action': 'always', 'filter': 'io_uring', 'syscall': ['openat', 'openat2'], 'keyname': 'lsr_io_uring'}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "(item.path is defined) or (item.dir is defined)", "item": { "action": "always", "filter": "io_uring", "keyname": "lsr_io_uring", "syscall": [ "openat", "openat2" ] }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'nowarn', 'syscall': 'open', 'keyname': 'lsr_arch_nw'}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "(item.path is defined) or (item.dir is defined)", "item": { "action": "always", "arch": "nowarn", "filter": "exit", "keyname": "lsr_arch_nw", "syscall": "open" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': ['b32', 'b64'], 'syscall': 'read', 'keyname': 'lsr_arch_pair'}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "(item.path is defined) or (item.dir is defined)", "item": { "action": "always", "arch": [ "b32", "b64" ], "filter": "exit", "keyname": "lsr_arch_pair", "syscall": "read" }, "skip_reason": "Conditional result was False" } ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'open', 'path': '/etc/hosts', 'permission': 'nowarn', 'keyname': 'lsr_path_nw'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "filter": "exit", "keyname": "lsr_path_nw", "path": "/etc/hosts", "permission": "nowarn", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'open', 'dir': '/etc/ssh', 'permission': 'read', 'keyname': 'lsr_dir_one_perm'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "dir": "/etc/ssh", "filter": "exit", "keyname": "lsr_dir_one_perm", "permission": "read", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'openat', 'dir': '/tmp', 'permission': ['read', 'write'], 'keyname': 'lsr_dir_many_perm'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "dir": "/tmp", "filter": "exit", "keyname": "lsr_dir_many_perm", "permission": [ "read", "write" ], "syscall": "openat" } } MSG: All assertions passed skipping: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': ['open', 'close'], 'keyname': 'lsr_sc_list'}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "(item.path is defined) or (item.dir is defined)", "item": { "action": "always", "arch": "b64", "filter": "exit", "keyname": "lsr_sc_list", "syscall": [ "open", "close" ] }, "skip_reason": "Conditional result was False" } ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'open', 'path': '/etc/issue', 'permission': 'read', 'field': ['success=1', 'auid!=-1', 'exit<-1', 'gid>10', 'euid<=65534', 'pid>=0', 'a1&0100', 'a2&=0200'], 'keyname': ['lsr_ops', 'lsr_ops2', 'lsr_ops3']}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "field": [ "success=1", "auid!=-1", "exit<-1", "gid>10", "euid<=65534", "pid>=0", "a1&0100", "a2&=0200" ], "filter": "exit", "keyname": [ "lsr_ops", "lsr_ops2", "lsr_ops3" ], "path": "/etc/issue", "permission": "read", "syscall": "open" } } MSG: All assertions passed skipping: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'dup', 'keyname': ['kk1', 'kk2']}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "(item.path is defined) or (item.dir is defined)", "item": { "action": "always", "arch": "b64", "filter": "exit", "keyname": [ "kk1", "kk2" ], "syscall": "dup" }, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.auditd : Assert auditd_rules syscall requires filter exit or io_uring] *** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:64 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.058) 0:00:04.555 ********* skipping: [managed-node1] => (item={'action': 'never', 'filter': 'filesystem', 'field': 'fstype=debugfs', 'keyname': 'lsr_fs_dbg'}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "item.syscall is defined", "item": { "action": "never", "field": "fstype=debugfs", "filter": "filesystem", "keyname": "lsr_fs_dbg" }, "skip_reason": "Conditional result was False" } ok: [managed-node1] => (item={'action': 'always', 'filter': 'io_uring', 'syscall': ['openat', 'openat2'], 'keyname': 'lsr_io_uring'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "filter": "io_uring", "keyname": "lsr_io_uring", "syscall": [ "openat", "openat2" ] } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'nowarn', 'syscall': 'open', 'keyname': 'lsr_arch_nw'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "nowarn", "filter": "exit", "keyname": "lsr_arch_nw", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': ['b32', 'b64'], 'syscall': 'read', 'keyname': 'lsr_arch_pair'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": [ "b32", "b64" ], "filter": "exit", "keyname": "lsr_arch_pair", "syscall": "read" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'open', 'path': '/etc/hosts', 'permission': 'nowarn', 'keyname': 'lsr_path_nw'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "filter": "exit", "keyname": "lsr_path_nw", "path": "/etc/hosts", "permission": "nowarn", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'open', 'dir': '/etc/ssh', 'permission': 'read', 'keyname': 'lsr_dir_one_perm'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "dir": "/etc/ssh", "filter": "exit", "keyname": "lsr_dir_one_perm", "permission": "read", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'openat', 'dir': '/tmp', 'permission': ['read', 'write'], 'keyname': 'lsr_dir_many_perm'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "dir": "/tmp", "filter": "exit", "keyname": "lsr_dir_many_perm", "permission": [ "read", "write" ], "syscall": "openat" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': ['open', 'close'], 'keyname': 'lsr_sc_list'}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "filter": "exit", "keyname": "lsr_sc_list", "syscall": [ "open", "close" ] } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'open', 'path': '/etc/issue', 'permission': 'read', 'field': ['success=1', 'auid!=-1', 'exit<-1', 'gid>10', 'euid<=65534', 'pid>=0', 'a1&0100', 'a2&=0200'], 'keyname': ['lsr_ops', 'lsr_ops2', 'lsr_ops3']}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "field": [ "success=1", "auid!=-1", "exit<-1", "gid>10", "euid<=65534", "pid>=0", "a1&0100", "a2&=0200" ], "filter": "exit", "keyname": [ "lsr_ops", "lsr_ops2", "lsr_ops3" ], "path": "/etc/issue", "permission": "read", "syscall": "open" } } MSG: All assertions passed ok: [managed-node1] => (item={'action': 'always', 'filter': 'exit', 'arch': 'b64', 'syscall': 'dup', 'keyname': ['kk1', 'kk2']}) => { "ansible_loop_var": "item", "changed": false, "item": { "action": "always", "arch": "b64", "filter": "exit", "keyname": [ "kk1", "kk2" ], "syscall": "dup" } } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert auditd_rules field is a non-empty string or list of non-empty strings] *** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:72 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.066) 0:00:04.622 ********* fatal: [managed-node1]: FAILED! => {} MSG: The conditional check 'item.field is auditd_non_empty_str_or_list' failed. The error was: template error while templating string: Could not load "auditd_non_empty_str_or_list": 'auditd_non_empty_str_or_list'. String: {% if item.field is auditd_non_empty_str_or_list %} True {% else %} False {% endif %}. Could not load "auditd_non_empty_str_or_list": 'auditd_non_empty_str_or_list' TASK [Cat /etc/audit/audit.rules] ********************************************** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:262 Tuesday 21 April 2026 21:25:07 -0400 (0:00:00.030) 0:00:04.652 ********* fatal: [managed-node1]: FAILED! => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3.12" }, "changed": false, "cmd": [ "cat", "/etc/audit/audit.rules" ], "delta": "0:00:00.003102", "end": "2026-04-21 21:25:08.281790", "failed_when_result": true, "rc": 0, "start": "2026-04-21 21:25:08.278688" } STDOUT: ## This file is automatically generated from /etc/audit/rules.d -D -b 8192 -f 1 --backlog_wait_time 60000 TASK [Restore system state after integration test] ***************************** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:268 Tuesday 21 April 2026 21:25:08 -0400 (0:00:00.498) 0:00:05.150 ********* included: /tmp/collections-Xh2/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-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:3 Tuesday 21 April 2026 21:25:08 -0400 (0:00:00.016) 0:00:05.167 ********* ok: [managed-node1] => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3.12" }, "changed": false, "checksum": "92826a0a4167a0ec9df5fc3f743dd551e25be805", "dest": "/etc/audit/auditd.conf", "gid": 0, "group": "root", "md5sum": "fd5c639b8b1bd57c486dab75985ad9af", "mode": "0640", "owner": "root", "secontext": "system_u:object_r:auditd_etc_t:s0", "size": 882, "src": "/root/.lsr_auditd_integration_auditd.conf.bak", "state": "file", "uid": 0 } TASK [Remove auditd.conf backup file] ****************************************** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:11 Tuesday 21 April 2026 21:25:08 -0400 (0:00:00.424) 0:00:05.592 ********* 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-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:17 Tuesday 21 April 2026 21:25:09 -0400 (0:00:00.435) 0:00:06.027 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__auditd_integration_backup_custom_rules is defined", "skip_reason": "Conditional result was False" } TASK [Remove custom.rules backup file] ***************************************** task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:25 Tuesday 21 April 2026 21:25:09 -0400 (0:00:00.014) 0:00:06.041 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__auditd_integration_backup_custom_rules is defined", "skip_reason": "Conditional result was False" } TASK [Remove custom.rules if it did not exist before test] ********************* task path: /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:31 Tuesday 21 April 2026 21:25:09 -0400 (0:00:00.013) 0:00:06.055 ********* ok: [managed-node1] => { "changed": false, "path": "/etc/audit/rules.d/custom.rules", "state": "absent" } PLAY RECAP ********************************************************************* managed-node1 : ok=41 changed=2 unreachable=0 failed=1 skipped=12 rescued=1 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.17.14", "end_time": "2026-04-22T01:25:07.829886+00:00Z", "host": "managed-node1", "message": "The conditional check 'item.field is auditd_non_empty_str_or_list' failed. The error was: template error while templating string: Could not load \"auditd_non_empty_str_or_list\": 'auditd_non_empty_str_or_list'. String: {% if item.field is auditd_non_empty_str_or_list %} True {% else %} False {% endif %}. Could not load \"auditd_non_empty_str_or_list\": 'auditd_non_empty_str_or_list'", "start_time": "2026-04-22T01:25:07.800983+00:00Z", "task_name": "Assert auditd_rules field is a non-empty string or list of non-empty strings", "task_path": "/tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:72" }, { "ansible_version": "2.17.14", "delta": "0:00:00.003102", "end_time": "2026-04-21 21:25:08.281790", "host": "managed-node1", "message": "", "rc": 0, "start_time": "2026-04-21 21:25:08.278688", "stdout": "## This file is automatically generated from /etc/audit/rules.d\n-D\n-b 8192\n-f 1\n--backlog_wait_time 60000", "task_name": "Cat /etc/audit/audit.rules", "task_path": "/tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:262" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Tuesday 21 April 2026 21:25:09 -0400 (0:00:00.354) 0:00:06.410 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 2.34s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:4 Cat /etc/audit/audit.rules ---------------------------------------------- 0.50s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:262 Check for existing auditd.conf ------------------------------------------ 0.45s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:7 Remove auditd.conf backup file ------------------------------------------ 0.44s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:11 Back up auditd.conf before test ----------------------------------------- 0.43s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:21 Restore auditd.conf from integration test backup ------------------------ 0.42s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:3 Remove custom.rules if it did not exist before test --------------------- 0.35s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:31 Check for existing custom.rules ----------------------------------------- 0.34s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:12 fedora.linux_system_roles.auditd : Assert each auditd_rules entry has required action and filter --- 0.11s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:13 fedora.linux_system_roles.auditd : Assert auditd_rules entries use only supported keys --- 0.10s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:29 fedora.linux_system_roles.auditd : Assert auditd_rules syscall requires filter exit or io_uring --- 0.07s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:64 fedora.linux_system_roles.auditd : Assert auditd_rules path and dir are mutually exclusive --- 0.06s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:49 Run the role normally --------------------------------------------------- 0.06s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:33 fedora.linux_system_roles.auditd : Assert auditd_rules path or dir requires filter exit --- 0.06s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:56 fedora.linux_system_roles.auditd : Validate auditd_rules structure and values --- 0.03s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:215 fedora.linux_system_roles.auditd : Assert auditd_rules field is a non-empty string or list of non-empty strings --- 0.03s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:72 fedora.linux_system_roles.auditd : Validate role parameters ------------- 0.03s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:3 fedora.linux_system_roles.auditd : Assert space_left is greater than admin_space_left when both use same form --- 0.02s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:137 fedora.linux_system_roles.auditd : Assert auditd_backlog_wait_time is null or a non-negative integer --- 0.02s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:48 fedora.linux_system_roles.auditd : Assert auditd_rules is a list of dicts --- 0.02s /tmp/collections-Xh2/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:4 Apr 21 21:25:02 managed-node1 sshd-session[8756]: Accepted publickey for root from 10.31.14.48 port 58438 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Apr 21 21:25:02 managed-node1 systemd-logind[765]: New session 5 of user root. ░░ Subject: A new session 5 has been created for user root ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ Documentation: sd-login(3) ░░ ░░ A new session with the ID 5 has been created for the user root. ░░ ░░ The leading process of the session is 8756. Apr 21 21:25:02 managed-node1 systemd[1]: Started session-5.scope - Session 5 of User root. ░░ Subject: A start job for unit session-5.scope has finished successfully ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ ░░ A start job for unit session-5.scope has finished successfully. ░░ ░░ The job identifier is 1088. Apr 21 21:25:02 managed-node1 sshd-session[8756]: pam_unix(sshd:session): session opened for user root(uid=0) by root(uid=0) Apr 21 21:25:02 managed-node1 sshd-session[8759]: Received disconnect from 10.31.14.48 port 58438:11: disconnected by user Apr 21 21:25:02 managed-node1 sshd-session[8759]: Disconnected from user root 10.31.14.48 port 58438 Apr 21 21:25:02 managed-node1 sshd-session[8756]: pam_unix(sshd:session): session closed for user root Apr 21 21:25:02 managed-node1 systemd[1]: session-5.scope: Deactivated successfully. ░░ Subject: Unit succeeded ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ ░░ The unit session-5.scope has successfully entered the 'dead' state. Apr 21 21:25:02 managed-node1 systemd-logind[765]: Session 5 logged out. Waiting for processes to exit. Apr 21 21:25:02 managed-node1 systemd-logind[765]: Removed session 5. ░░ Subject: Session 5 has been terminated ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ Documentation: sd-login(3) ░░ ░░ A session with the ID 5 has been terminated. Apr 21 21:25:02 managed-node1 sshd-session[8784]: Accepted publickey for root from 10.31.14.48 port 58448 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Apr 21 21:25:02 managed-node1 systemd-logind[765]: New session 6 of user root. ░░ Subject: A new session 6 has been created for user root ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ Documentation: sd-login(3) ░░ ░░ A new session with the ID 6 has been created for the user root. ░░ ░░ The leading process of the session is 8784. Apr 21 21:25:02 managed-node1 systemd[1]: Started session-6.scope - Session 6 of User root. ░░ Subject: A start job for unit session-6.scope has finished successfully ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ ░░ A start job for unit session-6.scope has finished successfully. ░░ ░░ The job identifier is 1170. Apr 21 21:25:02 managed-node1 sshd-session[8784]: pam_unix(sshd:session): session opened for user root(uid=0) by root(uid=0) Apr 21 21:25:02 managed-node1 sshd-session[8787]: Received disconnect from 10.31.14.48 port 58448:11: disconnected by user Apr 21 21:25:02 managed-node1 sshd-session[8787]: Disconnected from user root 10.31.14.48 port 58448 Apr 21 21:25:02 managed-node1 sshd-session[8784]: pam_unix(sshd:session): session closed for user root Apr 21 21:25:02 managed-node1 systemd[1]: session-6.scope: Deactivated successfully. ░░ Subject: Unit succeeded ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ ░░ The unit session-6.scope has successfully entered the 'dead' state. Apr 21 21:25:02 managed-node1 systemd-logind[765]: Session 6 logged out. Waiting for processes to exit. Apr 21 21:25:02 managed-node1 systemd-logind[765]: Removed session 6. ░░ Subject: Session 6 has been terminated ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ Documentation: sd-login(3) ░░ ░░ A session with the ID 6 has been terminated. Apr 21 21:25:03 managed-node1 sshd-session[8814]: Accepted publickey for root from 10.31.14.48 port 58458 ssh2: ECDSA SHA256:w0h9Yx5IXcNOyu1qcw25chUDCSkucWT2es6ACXDNM1w Apr 21 21:25:03 managed-node1 systemd-logind[765]: New session 7 of user root. ░░ Subject: A new session 7 has been created for user root ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ Documentation: sd-login(3) ░░ ░░ A new session with the ID 7 has been created for the user root. ░░ ░░ The leading process of the session is 8814. Apr 21 21:25:03 managed-node1 systemd[1]: Started session-7.scope - Session 7 of User root. ░░ Subject: A start job for unit session-7.scope has finished successfully ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ ░░ A start job for unit session-7.scope has finished successfully. ░░ ░░ The job identifier is 1252. Apr 21 21:25:03 managed-node1 sshd-session[8814]: pam_unix(sshd:session): session opened for user root(uid=0) by root(uid=0) Apr 21 21:25:05 managed-node1 python3.12[8991]: ansible-ansible.legacy.setup Invoked with gather_subset=['all'] gather_timeout=10 filter=[] fact_path=/etc/ansible/facts.d Apr 21 21:25:05 managed-node1 python3.12[9169]: ansible-ansible.builtin.stat Invoked with path=/etc/audit/auditd.conf follow=False get_checksum=True get_mime=True get_attributes=True checksum_algorithm=sha1 Apr 21 21:25:06 managed-node1 python3.12[9320]: ansible-ansible.builtin.stat Invoked with path=/etc/audit/rules.d/custom.rules follow=False get_checksum=True get_mime=True get_attributes=True checksum_algorithm=sha1 Apr 21 21:25:06 managed-node1 python3.12[9469]: ansible-ansible.legacy.copy Invoked with src=/etc/audit/auditd.conf dest=/root/.lsr_auditd_integration_auditd.conf.bak remote_src=True mode=preserve backup=False force=True follow=False unsafe_writes=False _original_basename=None content=NOT_LOGGING_PARAMETER validate=None directory_mode=None local_follow=None checksum=None owner=None group=None seuser=None serole=None selevel=None setype=None attributes=None Apr 21 21:25:08 managed-node1 python3.12[9667]: ansible-ansible.legacy.command Invoked with _raw_params=cat /etc/audit/audit.rules _uses_shell=False expand_argument_vars=True stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None Apr 21 21:25:08 managed-node1 python3.12[9866]: ansible-ansible.legacy.copy Invoked with src=/root/.lsr_auditd_integration_auditd.conf.bak dest=/etc/audit/auditd.conf remote_src=True mode=preserve backup=False force=True follow=False unsafe_writes=False _original_basename=None content=NOT_LOGGING_PARAMETER validate=None directory_mode=None local_follow=None checksum=None owner=None group=None seuser=None serole=None selevel=None setype=None attributes=None Apr 21 21:25:09 managed-node1 python3.12[10015]: ansible-ansible.builtin.file Invoked with path=/root/.lsr_auditd_integration_auditd.conf.bak state=absent recurse=False force=False follow=True modification_time_format=%Y%m%d%H%M.%S access_time_format=%Y%m%d%H%M.%S unsafe_writes=False _original_basename=None _diff_peek=None src=None modification_time=None access_time=None mode=None owner=None group=None seuser=None serole=None selevel=None setype=None attributes=None Apr 21 21:25:09 managed-node1 python3.12[10164]: ansible-ansible.builtin.file Invoked with path=/etc/audit/rules.d/custom.rules state=absent recurse=False force=False follow=True modification_time_format=%Y%m%d%H%M.%S access_time_format=%Y%m%d%H%M.%S unsafe_writes=False _original_basename=None _diff_peek=None src=None modification_time=None access_time=None mode=None owner=None group=None seuser=None serole=None selevel=None setype=None attributes=None Apr 21 21:25:09 managed-node1 sshd-session[10189]: Accepted publickey for root from 10.31.14.48 port 52216 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Apr 21 21:25:09 managed-node1 systemd-logind[765]: New session 8 of user root. ░░ Subject: A new session 8 has been created for user root ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ Documentation: sd-login(3) ░░ ░░ A new session with the ID 8 has been created for the user root. ░░ ░░ The leading process of the session is 10189. Apr 21 21:25:09 managed-node1 systemd[1]: Started session-8.scope - Session 8 of User root. ░░ Subject: A start job for unit session-8.scope has finished successfully ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ ░░ A start job for unit session-8.scope has finished successfully. ░░ ░░ The job identifier is 1334. Apr 21 21:25:09 managed-node1 sshd-session[10189]: pam_unix(sshd:session): session opened for user root(uid=0) by root(uid=0) Apr 21 21:25:09 managed-node1 sshd-session[10192]: Received disconnect from 10.31.14.48 port 52216:11: disconnected by user Apr 21 21:25:09 managed-node1 sshd-session[10192]: Disconnected from user root 10.31.14.48 port 52216 Apr 21 21:25:09 managed-node1 sshd-session[10189]: pam_unix(sshd:session): session closed for user root Apr 21 21:25:09 managed-node1 systemd[1]: session-8.scope: Deactivated successfully. ░░ Subject: Unit succeeded ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ ░░ The unit session-8.scope has successfully entered the 'dead' state. Apr 21 21:25:09 managed-node1 systemd-logind[765]: Session 8 logged out. Waiting for processes to exit. Apr 21 21:25:09 managed-node1 systemd-logind[765]: Removed session 8. ░░ Subject: Session 8 has been terminated ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ Documentation: sd-login(3) ░░ ░░ A session with the ID 8 has been terminated. Apr 21 21:25:09 managed-node1 sshd-session[10218]: Accepted publickey for root from 10.31.14.48 port 52220 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Apr 21 21:25:09 managed-node1 systemd-logind[765]: New session 9 of user root. ░░ Subject: A new session 9 has been created for user root ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ Documentation: sd-login(3) ░░ ░░ A new session with the ID 9 has been created for the user root. ░░ ░░ The leading process of the session is 10218. Apr 21 21:25:09 managed-node1 systemd[1]: Started session-9.scope - Session 9 of User root. ░░ Subject: A start job for unit session-9.scope has finished successfully ░░ Defined-By: systemd ░░ Support: https://access.redhat.com/support ░░ ░░ A start job for unit session-9.scope has finished successfully. ░░ ░░ The job identifier is 1416. Apr 21 21:25:09 managed-node1 sshd-session[10218]: pam_unix(sshd:session): session opened for user root(uid=0) by root(uid=0)