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-lGg 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_auditd_integration.yml ***************************************** 1 plays in /tmp/collections-lGg/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-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:4 Tuesday 21 April 2026 21:15:17 -0400 (0:00:00.017) 0:00:00.017 ********* ok: [managed-node1] TASK [Back up existing auditd configuration and rules] ************************* task path: /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:9 Tuesday 21 April 2026 21:15:18 -0400 (0:00:01.205) 0:00:01.222 ********* included: /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml for managed-node1 TASK [Check for existing auditd.conf] ****************************************** task path: /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:7 Tuesday 21 April 2026 21:15:18 -0400 (0:00:00.014) 0:00:01.237 ********* ok: [managed-node1] => { "changed": false, "stat": { "atime": 1776820379.537, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "92826a0a4167a0ec9df5fc3f743dd551e25be805", "ctime": 1716968741.879, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4939770, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1699258415.0, "nlink": 1, "path": "/etc/audit/auditd.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 882, "uid": 0, "version": "3564651217", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check for existing custom.rules] ***************************************** task path: /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:12 Tuesday 21 April 2026 21:15:18 -0400 (0:00:00.410) 0:00:01.647 ********* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [Remember whether custom.rules existed] *********************************** task path: /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:17 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.306) 0:00:01.954 ********* ok: [managed-node1] => { "ansible_facts": { "__auditd_integration_had_custom_rules": false }, "changed": false } TASK [Back up auditd.conf before test] ***************************************** task path: /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:21 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.013) 0:00:01.967 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:29 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.412) 0:00:02.379 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:37 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.011) 0:00:02.391 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:42 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.014) 0:00:02.405 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:12 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.010) 0:00:02.415 ********* included: /tmp/collections-lGg/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-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:9 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.016) 0:00:02.432 ********* META: facts cleared TASK [Run the role] ************************************************************ task path: /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:23 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.000) 0:00:02.433 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/run_role_with_clear_facts.yml:33 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.014) 0:00:02.448 ********* TASK [fedora.linux_system_roles.auditd : Validating arguments against arg spec 'main' - Manage auditd and audit rules] *** task path: /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:4 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.067) 0:00:02.515 ********* ok: [managed-node1] => { "changed": false, "validate_args_context": { "argument_spec_name": "main", "name": "auditd", "path": "/tmp/collections-lGg/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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:3 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.014) 0:00:02.529 ********* included: /tmp/collections-lGg/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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:4 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.026) 0:00:02.556 ********* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.auditd : Assert freq range (freq_parser)] ****** task path: /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:11 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.015) 0:00:02.571 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:18 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.015) 0:00:02.587 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:25 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.015) 0:00:02.602 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:31 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.015) 0:00:02.617 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:38 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.018) 0:00:02.636 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:48 Tuesday 21 April 2026 21:15:19 -0400 (0:00:00.019) 0:00:02.656 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:58 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.019) 0:00:02.675 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:64 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.014) 0:00:02.690 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:70 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.014) 0:00:02.705 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:76 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.015) 0:00:02.720 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:82 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.015) 0:00:02.736 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:88 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.015) 0:00:02.752 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:98 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.019) 0:00:02.772 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:107 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.020) 0:00:02.792 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:113 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.013) 0:00:02.806 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:125 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.014) 0:00:02.820 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:137 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.014) 0:00:02.835 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:161 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.022) 0:00:02.858 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:167 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.014) 0:00:02.872 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:173 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.014) 0:00:02.886 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:180 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.011) 0:00:02.897 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:187 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.010) 0:00:02.908 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:194 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.011) 0:00:02.919 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:201 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.011) 0:00:02.931 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:208 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.010) 0:00:02.941 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:215 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.016) 0:00:02.958 ********* included: /tmp/collections-lGg/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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:4 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.035) 0:00:02.993 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:13 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.022) 0:00:03.016 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:29 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.130) 0:00:03.147 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:49 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.101) 0:00:03.248 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:56 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.067) 0:00:03.315 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:64 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.063) 0:00:03.379 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:72 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.072) 0:00:03.452 ********* 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: {% set __cres = item.field is auditd_non_empty_str_or_list %}{{ [true if __cres else false, __cres.__class__.__name__] }}. Could not load "auditd_non_empty_str_or_list": 'auditd_non_empty_str_or_list' The error appears to be in '/tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml': line 75, column 9, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: that: - item.field is auditd_non_empty_str_or_list ^ here TASK [Cat /etc/audit/audit.rules] ********************************************** task path: /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:262 Tuesday 21 April 2026 21:15:20 -0400 (0:00:00.023) 0:00:03.475 ********* fatal: [managed-node1]: FAILED! => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": false, "cmd": [ "cat", "/etc/audit/audit.rules" ], "delta": "0:00:00.002535", "end": "2026-04-21 21:15:21.241269", "failed_when_result": true, "rc": 0, "start": "2026-04-21 21:15:21.238734" } 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-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:268 Tuesday 21 April 2026 21:15:21 -0400 (0:00:00.480) 0:00:03.956 ********* included: /tmp/collections-lGg/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-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:3 Tuesday 21 April 2026 21:15:21 -0400 (0:00:00.016) 0:00:03.972 ********* ok: [managed-node1] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "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-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:11 Tuesday 21 April 2026 21:15:21 -0400 (0:00:00.403) 0:00:04.375 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:17 Tuesday 21 April 2026 21:15:22 -0400 (0:00:00.419) 0:00:04.795 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:25 Tuesday 21 April 2026 21:15:22 -0400 (0:00:00.014) 0:00:04.809 ********* 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-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:31 Tuesday 21 April 2026 21:15:22 -0400 (0:00:00.013) 0:00:04.823 ********* ok: [managed-node1] => { "changed": false, "path": "/etc/audit/rules.d/custom.rules", "state": "absent" } PLAY RECAP ********************************************************************* managed-node1 : ok=40 changed=2 unreachable=0 failed=1 skipped=12 rescued=1 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.16.18", "end_time": "2026-04-22T01:15:20.802671+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: {% set __cres = item.field is auditd_non_empty_str_or_list %}{{ [true if __cres else false, __cres.__class__.__name__] }}. Could not load \"auditd_non_empty_str_or_list\": 'auditd_non_empty_str_or_list'\n\nThe error appears to be in '/tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml': line 75, column 9, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n that:\n - item.field is auditd_non_empty_str_or_list\n ^ here\n", "start_time": "2026-04-22T01:15:20.780936+00:00Z", "task_name": "Assert auditd_rules field is a non-empty string or list of non-empty strings", "task_path": "/tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:72" }, { "ansible_version": "2.16.18", "delta": "0:00:00.002535", "end_time": "2026-04-21 21:15:21.241269", "host": "managed-node1", "message": "", "rc": 0, "start_time": "2026-04-21 21:15:21.238734", "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-lGg/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:15:22 -0400 (0:00:00.315) 0:00:05.138 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 1.21s /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:4 Cat /etc/audit/audit.rules ---------------------------------------------- 0.48s /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tests_auditd_integration.yml:262 Remove auditd.conf backup file ------------------------------------------ 0.42s /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:11 Back up auditd.conf before test ----------------------------------------- 0.41s /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:21 Check for existing auditd.conf ------------------------------------------ 0.41s /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/setup.yml:7 Restore auditd.conf from integration test backup ------------------------ 0.40s /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:3 Remove custom.rules if it did not exist before test --------------------- 0.32s /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/tests/auditd/tasks/cleanup.yml:31 Check for existing custom.rules ----------------------------------------- 0.31s /tmp/collections-lGg/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.13s /tmp/collections-lGg/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-lGg/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-lGg/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.07s /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:49 Run the role normally --------------------------------------------------- 0.07s /tmp/collections-lGg/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-lGg/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.04s /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:215 fedora.linux_system_roles.auditd : Validate role parameters ------------- 0.03s /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/main.yml:3 fedora.linux_system_roles.auditd : Assert auditd_rules field is a non-empty string or list of non-empty strings --- 0.02s /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:72 fedora.linux_system_roles.auditd : Assert auditd_rules is a list of dicts --- 0.02s /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_auditd_rules.yml:4 fedora.linux_system_roles.auditd : Assert space_left is greater than admin_space_left when both use same form --- 0.02s /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:137 fedora.linux_system_roles.auditd : Assert tcp_client_ports range order --- 0.02s /tmp/collections-lGg/ansible_collections/fedora/linux_system_roles/roles/auditd/tasks/assert_role_vars.yml:98 -- Logs begin at Tue 2026-04-21 21:12:50 EDT, end at Tue 2026-04-21 21:15:22 EDT. -- Apr 21 21:15:16 managed-node1 sshd[7200]: Accepted publickey for root from 10.31.13.170 port 37434 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Apr 21 21:15:16 managed-node1 systemd[1]: Started Session 5 of user root. -- Subject: Unit session-5.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-5.scope has finished starting up. -- -- The start-up result is done. Apr 21 21:15:16 managed-node1 systemd-logind[595]: 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: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 5 has been created for the user root. -- -- The leading process of the session is 7200. Apr 21 21:15:16 managed-node1 sshd[7200]: pam_unix(sshd:session): session opened for user root by (uid=0) Apr 21 21:15:16 managed-node1 sshd[7203]: Received disconnect from 10.31.13.170 port 37434:11: disconnected by user Apr 21 21:15:16 managed-node1 sshd[7203]: Disconnected from user root 10.31.13.170 port 37434 Apr 21 21:15:16 managed-node1 sshd[7200]: pam_unix(sshd:session): session closed for user root Apr 21 21:15:16 managed-node1 systemd[1]: session-5.scope: Succeeded. -- 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:15:16 managed-node1 systemd-logind[595]: Session 5 logged out. Waiting for processes to exit. Apr 21 21:15:16 managed-node1 systemd-logind[595]: Removed session 5. -- Subject: Session 5 has been terminated -- Defined-By: systemd -- Support: https://access.redhat.com/support -- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A session with the ID 5 has been terminated. Apr 21 21:15:16 managed-node1 sshd[7223]: Accepted publickey for root from 10.31.13.170 port 37446 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Apr 21 21:15:16 managed-node1 systemd[1]: Started Session 6 of user root. -- Subject: Unit session-6.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-6.scope has finished starting up. -- -- The start-up result is done. Apr 21 21:15:16 managed-node1 systemd-logind[595]: 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: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 6 has been created for the user root. -- -- The leading process of the session is 7223. Apr 21 21:15:16 managed-node1 sshd[7223]: pam_unix(sshd:session): session opened for user root by (uid=0) Apr 21 21:15:16 managed-node1 systemd[1]: systemd-hostnamed.service: Succeeded. -- Subject: Unit succeeded -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- The unit systemd-hostnamed.service has successfully entered the 'dead' state. Apr 21 21:15:16 managed-node1 sshd[7226]: Received disconnect from 10.31.13.170 port 37446:11: disconnected by user Apr 21 21:15:16 managed-node1 sshd[7226]: Disconnected from user root 10.31.13.170 port 37446 Apr 21 21:15:16 managed-node1 sshd[7223]: pam_unix(sshd:session): session closed for user root Apr 21 21:15:16 managed-node1 systemd[1]: session-6.scope: Succeeded. -- 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:15:16 managed-node1 systemd-logind[595]: Session 6 logged out. Waiting for processes to exit. Apr 21 21:15:16 managed-node1 systemd-logind[595]: Removed session 6. -- Subject: Session 6 has been terminated -- Defined-By: systemd -- Support: https://access.redhat.com/support -- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A session with the ID 6 has been terminated. Apr 21 21:15:17 managed-node1 sshd[7251]: Accepted publickey for root from 10.31.13.170 port 37454 ssh2: ECDSA SHA256:N26kn7Tnk1mmxLsyOHjNhTOs15Fdaz4k4AjMjqan2dM Apr 21 21:15:17 managed-node1 systemd[1]: Started Session 7 of user root. -- Subject: Unit session-7.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-7.scope has finished starting up. -- -- The start-up result is done. Apr 21 21:15:17 managed-node1 systemd-logind[595]: 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: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 7 has been created for the user root. -- -- The leading process of the session is 7251. Apr 21 21:15:17 managed-node1 sshd[7251]: pam_unix(sshd:session): session opened for user root by (uid=0) Apr 21 21:15:18 managed-node1 platform-python[7396]: ansible-ansible.legacy.setup Invoked with gather_subset=['all'] gather_timeout=10 filter=[] fact_path=/etc/ansible/facts.d Apr 21 21:15:18 managed-node1 platform-python[7548]: 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:15:19 managed-node1 platform-python[7673]: 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:15:19 managed-node1 platform-python[7796]: 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:15:21 managed-node1 platform-python[7960]: 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:15:21 managed-node1 platform-python[8123]: 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:15:22 managed-node1 platform-python[8246]: 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:15:22 managed-node1 platform-python[8369]: 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:15:22 managed-node1 sshd[8390]: Accepted publickey for root from 10.31.13.170 port 37464 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Apr 21 21:15:22 managed-node1 systemd[1]: Started Session 8 of user root. -- Subject: Unit session-8.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-8.scope has finished starting up. -- -- The start-up result is done. Apr 21 21:15:22 managed-node1 systemd-logind[595]: 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: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 8 has been created for the user root. -- -- The leading process of the session is 8390. Apr 21 21:15:22 managed-node1 sshd[8390]: pam_unix(sshd:session): session opened for user root by (uid=0) Apr 21 21:15:22 managed-node1 sshd[8393]: Received disconnect from 10.31.13.170 port 37464:11: disconnected by user Apr 21 21:15:22 managed-node1 sshd[8393]: Disconnected from user root 10.31.13.170 port 37464 Apr 21 21:15:22 managed-node1 sshd[8390]: pam_unix(sshd:session): session closed for user root Apr 21 21:15:22 managed-node1 systemd[1]: session-8.scope: Succeeded. -- 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:15:22 managed-node1 systemd-logind[595]: Session 8 logged out. Waiting for processes to exit. Apr 21 21:15:22 managed-node1 systemd-logind[595]: Removed session 8. -- Subject: Session 8 has been terminated -- Defined-By: systemd -- Support: https://access.redhat.com/support -- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A session with the ID 8 has been terminated. Apr 21 21:15:22 managed-node1 sshd[8414]: Accepted publickey for root from 10.31.13.170 port 37470 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Apr 21 21:15:22 managed-node1 systemd-logind[595]: 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: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 9 has been created for the user root. -- -- The leading process of the session is 8414. Apr 21 21:15:22 managed-node1 systemd[1]: Started Session 9 of user root. -- Subject: Unit session-9.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-9.scope has finished starting up. -- -- The start-up result is done. Apr 21 21:15:22 managed-node1 sshd[8414]: pam_unix(sshd:session): session opened for user root by (uid=0)