ansible-playbook [core 2.17.12] 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-ZRQ executable location = /usr/local/bin/ansible-playbook python version = 3.12.10 (main, May 9 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-5)] (/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 '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_relp.yml ******************************************************* 1 plays in /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml PLAY [Test the server/client configuration using tls relp] ********************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml:2 Monday 07 July 2025 09:09:57 -0400 (0:00:00.058) 0:00:00.058 *********** [WARNING]: Platform linux on host managed-node3 is using the discovered Python interpreter at /usr/bin/python3.9, 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-node3] TASK [Set firewall and selinux to true] **************************************** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml:23 Monday 07 July 2025 09:09:59 -0400 (0:00:01.320) 0:00:01.378 *********** ok: [managed-node3] => { "ansible_facts": { "logging_manage_firewall": true, "logging_manage_selinux": true }, "changed": false } TASK [TEST CASE 0; Test the server configuration containing tls tcp, plain tcp and udp connection] *** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml:28 Monday 07 July 2025 09:09:59 -0400 (0:00:00.036) 0:00:01.415 *********** included: fedora.linux_system_roles.logging for managed-node3 TASK [fedora.linux_system_roles.logging : Set global variables] **************** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:2 Monday 07 July 2025 09:09:59 -0400 (0:00:00.127) 0:00:01.543 *********** included: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml for managed-node3 TASK [fedora.linux_system_roles.logging : Run systemctl] *********************** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml:7 Monday 07 July 2025 09:09:59 -0400 (0:00:00.030) 0:00:01.573 *********** ok: [managed-node3] => { "changed": false, "cmd": [ "systemctl", "is-system-running" ], "delta": "0:00:00.007897", "end": "2025-07-07 09:09:59.954702", "failed_when_result": false, "rc": 0, "start": "2025-07-07 09:09:59.946805" } STDOUT: running TASK [fedora.linux_system_roles.logging : Require installed systemd] *********** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml:14 Monday 07 July 2025 09:10:00 -0400 (0:00:00.653) 0:00:02.227 *********** skipping: [managed-node3] => { "changed": false, "false_condition": "\"No such file or directory\" in __is_system_running.msg | d(\"\")", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.logging : Set flag to indicate that systemd runtime operations are available] *** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml:19 Monday 07 July 2025 09:10:00 -0400 (0:00:00.062) 0:00:02.289 *********** ok: [managed-node3] => { "ansible_facts": { "__logging_is_booted": true }, "changed": false } TASK [fedora.linux_system_roles.logging : Set files output if files output is not defined and logging_inputs is not empty] *** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:10 Monday 07 July 2025 09:10:00 -0400 (0:00:00.043) 0:00:02.332 *********** skipping: [managed-node3] => { "changed": false, "false_condition": "logging_outputs | d([]) | selectattr('name', 'defined') | selectattr('type', 'defined') | selectattr('type', 'match', '^files$') | list | length == 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.logging : Set rsyslog_outputs] ***************** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:17 Monday 07 July 2025 09:10:00 -0400 (0:00:00.116) 0:00:02.448 *********** ok: [managed-node3] => { "ansible_facts": { "rsyslog_outputs": [ { "name": "files_output", "type": "files" }, { "name": "forwards_output", "target": "host.domain", "tcp_port": 1514, "type": "forwards" } ] }, "changed": false } TASK [fedora.linux_system_roles.logging : Set rsyslog_inputs] ****************** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:21 Monday 07 July 2025 09:10:00 -0400 (0:00:00.097) 0:00:02.546 *********** ok: [managed-node3] => { "ansible_facts": { "rsyslog_inputs": [ { "name": "system_input", "type": "basics" }, { "ca_cert": "/etc/pki/tls/certs/logging_cert.crt", "cert": "/etc/pki/tls/certs/logging_cert.crt", "name": "relp_server0", "permitted_clients": [ "*.client.com", "*.example.com" ], "pki_authmode": "name", "port": 6514, "private_key": "/etc/pki/tls/private/logging_cert.key", "tls": true, "type": "relp" }, { "ca_cert": "/etc/pki/tls/certs/logging_cert.crt", "cert": "/etc/pki/tls/certs/logging_cert.crt", "name": "relp_server1", "pki_authmode": "name", "port": 20514, "private_key": "/etc/pki/tls/private/logging_cert.key", "tls": true, "type": "relp" } ] }, "changed": false } TASK [fedora.linux_system_roles.logging : Use of rsyslog_custom_config_files is deprecated] *** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:25 Monday 07 July 2025 09:10:00 -0400 (0:00:00.095) 0:00:02.642 *********** skipping: [managed-node3] => { "false_condition": "rsyslog_custom_config_files is defined" } TASK [fedora.linux_system_roles.logging : Use of type custom is deprecated] **** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:32 Monday 07 July 2025 09:10:00 -0400 (0:00:00.073) 0:00:02.715 *********** skipping: [managed-node3] => { "false_condition": "__custom_output_files | length > 0" } TASK [fedora.linux_system_roles.logging : Check logging_inputs item in logging_flows.inputs] *** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:45 Monday 07 July 2025 09:10:00 -0400 (0:00:00.081) 0:00:02.797 *********** skipping: [managed-node3] => (item={'name': 'flows', 'inputs': ['system_input', 'relp_server0', 'relp_server1'], 'outputs': ['files_output', 'forwards_output']}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "item.inputs | intersect(__logging_input_names) | length != item.inputs | length", "item": { "inputs": [ "system_input", "relp_server0", "relp_server1" ], "name": "flows", "outputs": [ "files_output", "forwards_output" ] }, "skip_reason": "Conditional result was False" } skipping: [managed-node3] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.logging : Gather ports specified in the logging_inputs and outputs vars] *** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:55 Monday 07 July 2025 09:10:00 -0400 (0:00:00.077) 0:00:02.875 *********** included: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml for managed-node3 TASK [fedora.linux_system_roles.logging : Initialize ports variables] ********** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:3 Monday 07 July 2025 09:10:00 -0400 (0:00:00.070) 0:00:02.945 *********** ok: [managed-node3] => { "ansible_facts": { "logging_tcp_ports": [], "logging_tls_tcp_ports": [], "logging_tls_udp_ports": [], "logging_udp_ports": [] }, "changed": false } TASK [fedora.linux_system_roles.logging : Parameter 'port' values] ************* task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:15 Monday 07 July 2025 09:10:00 -0400 (0:00:00.053) 0:00:02.998 *********** ok: [managed-node3] => { "ansible_facts": { "logging_tls_tcp_ports": [ 6514, 20514 ] }, "changed": false } TASK [fedora.linux_system_roles.logging : Update port values from outputs] ***** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:35 Monday 07 July 2025 09:10:00 -0400 (0:00:00.061) 0:00:03.060 *********** ok: [managed-node3] => { "ansible_facts": { "logging_tcp_ports": [ 1514 ], "logging_tls_tcp_ports": [ 6514, 20514 ], "logging_tls_udp_ports": [], "logging_udp_ports": [] }, "changed": false } TASK [fedora.linux_system_roles.logging : Update port values from inputs] ****** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:55 Monday 07 July 2025 09:10:00 -0400 (0:00:00.071) 0:00:03.132 *********** ok: [managed-node3] => { "ansible_facts": { "logging_tcp_ports": [ 1514 ], "logging_tls_tcp_ports": [ 6514, 20514 ], "logging_tls_udp_ports": [], "logging_udp_ports": [] }, "changed": false } TASK [fedora.linux_system_roles.logging : Manage firewall on the gathered ports] *** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:58 Monday 07 July 2025 09:10:01 -0400 (0:00:00.106) 0:00:03.239 *********** included: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml for managed-node3 TASK [fedora.linux_system_roles.logging : Initialize logging_firewall_ports] *** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:7 Monday 07 July 2025 09:10:01 -0400 (0:00:00.063) 0:00:03.302 *********** ok: [managed-node3] => { "ansible_facts": { "logging_firewall_ports": [] }, "changed": false } TASK [fedora.linux_system_roles.logging : Add tcp ports to logging_firewall_ports] *** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:11 Monday 07 July 2025 09:10:01 -0400 (0:00:00.053) 0:00:03.355 *********** ok: [managed-node3] => (item=1514/tcp) => { "ansible_facts": { "logging_firewall_ports": [ { "port": "1514/tcp", "state": "enabled" } ] }, "ansible_loop_var": "item", "changed": false, "item": "1514/tcp" } ok: [managed-node3] => (item=6514/tcp) => { "ansible_facts": { "logging_firewall_ports": [ { "port": "1514/tcp", "state": "enabled" }, { "port": "6514/tcp", "state": "enabled" } ] }, "ansible_loop_var": "item", "changed": false, "item": "6514/tcp" } ok: [managed-node3] => (item=20514/tcp) => { "ansible_facts": { "logging_firewall_ports": [ { "port": "1514/tcp", "state": "enabled" }, { "port": "6514/tcp", "state": "enabled" }, { "port": "20514/tcp", "state": "enabled" } ] }, "ansible_loop_var": "item", "changed": false, "item": "20514/tcp" } TASK [fedora.linux_system_roles.logging : Add udp ports to logging_firewall_ports] *** task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:17 Monday 07 July 2025 09:10:01 -0400 (0:00:00.088) 0:00:03.444 *********** skipping: [managed-node3] => { "changed": false, "skipped_reason": "No items in the list" } TASK [Manage firewall for specified ports] ************************************* task path: /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:23 Monday 07 July 2025 09:10:01 -0400 (0:00:00.033) 0:00:03.478 *********** ERROR! the role 'fedora.linux_system_roles.firewall' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/tests/logging/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/tests/logging The error appears to be in '/tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml': line 25, column 15, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: include_role: name: fedora.linux_system_roles.firewall ^ here fatal: [managed-node3]: FAILED! => { "changed": false, "reason": "the role 'fedora.linux_system_roles.firewall' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/tests/logging/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/tests/logging\n\nThe error appears to be in '/tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml': line 25, column 15, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n include_role:\n name: fedora.linux_system_roles.firewall\n ^ here\n" } PLAY RECAP ********************************************************************* managed-node3 : ok=16 changed=0 unreachable=0 failed=1 skipped=6 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.17.12", "end_time": "2025-07-07T13:10:01.312280+00:00Z", "host": "managed-node3", "message": "No message could be found", "start_time": "2025-07-07T13:10:01.266934+00:00Z", "task_name": "Manage firewall for specified ports", "task_path": "/tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:23" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Monday 07 July 2025 09:10:01 -0400 (0:00:00.046) 0:00:03.525 *********** =============================================================================== Gathering Facts --------------------------------------------------------- 1.32s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml:2 fedora.linux_system_roles.logging : Run systemctl ----------------------- 0.65s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml:7 TEST CASE 0; Test the server configuration containing tls tcp, plain tcp and udp connection --- 0.13s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml:28 fedora.linux_system_roles.logging : Set files output if files output is not defined and logging_inputs is not empty --- 0.12s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:10 fedora.linux_system_roles.logging : Update port values from inputs ------ 0.11s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:55 fedora.linux_system_roles.logging : Set rsyslog_outputs ----------------- 0.10s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:17 fedora.linux_system_roles.logging : Set rsyslog_inputs ------------------ 0.10s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:21 fedora.linux_system_roles.logging : Add tcp ports to logging_firewall_ports --- 0.09s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:11 fedora.linux_system_roles.logging : Use of type custom is deprecated ---- 0.08s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:32 fedora.linux_system_roles.logging : Check logging_inputs item in logging_flows.inputs --- 0.08s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:45 fedora.linux_system_roles.logging : Use of rsyslog_custom_config_files is deprecated --- 0.07s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:25 fedora.linux_system_roles.logging : Update port values from outputs ----- 0.07s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:35 fedora.linux_system_roles.logging : Gather ports specified in the logging_inputs and outputs vars --- 0.07s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:55 fedora.linux_system_roles.logging : Manage firewall on the gathered ports --- 0.06s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:58 fedora.linux_system_roles.logging : Require installed systemd ----------- 0.06s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml:14 fedora.linux_system_roles.logging : Parameter 'port' values ------------- 0.06s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:15 fedora.linux_system_roles.logging : Initialize ports variables ---------- 0.05s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:3 fedora.linux_system_roles.logging : Initialize logging_firewall_ports --- 0.05s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:7 Manage firewall for specified ports ------------------------------------- 0.05s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:23 fedora.linux_system_roles.logging : Set flag to indicate that systemd runtime operations are available --- 0.04s /tmp/collections-ZRQ/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml:19