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-F3B executable location = /usr/local/bin/ansible-playbook python version = 3.12.11 (main, Jun 4 2025, 00:00:00) [GCC 14.2.1 20250110 (Red Hat 14.2.1-8)] (/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-F3B/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-F3B/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml:2 Monday 07 July 2025 09:07:54 -0400 (0:00:00.034) 0:00:00.034 *********** [WARNING]: Platform linux on host managed-node2 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-node2] TASK [Set firewall and selinux to true] **************************************** task path: /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml:23 Monday 07 July 2025 09:07:55 -0400 (0:00:01.432) 0:00:01.466 *********** ok: [managed-node2] => { "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-F3B/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml:28 Monday 07 July 2025 09:07:55 -0400 (0:00:00.050) 0:00:01.517 *********** included: fedora.linux_system_roles.logging for managed-node2 TASK [fedora.linux_system_roles.logging : Set global variables] **************** task path: /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:2 Monday 07 July 2025 09:07:55 -0400 (0:00:00.114) 0:00:01.632 *********** included: /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml for managed-node2 TASK [fedora.linux_system_roles.logging : Run systemctl] *********************** task path: /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml:7 Monday 07 July 2025 09:07:55 -0400 (0:00:00.029) 0:00:01.662 *********** ok: [managed-node2] => { "changed": false, "cmd": [ "systemctl", "is-system-running" ], "delta": "0:00:00.008958", "end": "2025-07-07 09:07:56.152454", "failed_when_result": false, "rc": 0, "start": "2025-07-07 09:07:56.143496" } STDOUT: running TASK [fedora.linux_system_roles.logging : Require installed systemd] *********** task path: /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml:14 Monday 07 July 2025 09:07:56 -0400 (0:00:00.587) 0:00:02.249 *********** skipping: [managed-node2] => { "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-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml:19 Monday 07 July 2025 09:07:56 -0400 (0:00:00.098) 0:00:02.347 *********** ok: [managed-node2] => { "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-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:10 Monday 07 July 2025 09:07:56 -0400 (0:00:00.048) 0:00:02.395 *********** skipping: [managed-node2] => { "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-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:17 Monday 07 July 2025 09:07:56 -0400 (0:00:00.066) 0:00:02.462 *********** ok: [managed-node2] => { "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-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:21 Monday 07 July 2025 09:07:56 -0400 (0:00:00.070) 0:00:02.533 *********** ok: [managed-node2] => { "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-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:25 Monday 07 July 2025 09:07:56 -0400 (0:00:00.090) 0:00:02.623 *********** skipping: [managed-node2] => { "false_condition": "rsyslog_custom_config_files is defined" } TASK [fedora.linux_system_roles.logging : Use of type custom is deprecated] **** task path: /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:32 Monday 07 July 2025 09:07:56 -0400 (0:00:00.072) 0:00:02.695 *********** skipping: [managed-node2] => { "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-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:45 Monday 07 July 2025 09:07:56 -0400 (0:00:00.077) 0:00:02.773 *********** skipping: [managed-node2] => (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-node2] => { "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-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:55 Monday 07 July 2025 09:07:56 -0400 (0:00:00.090) 0:00:02.864 *********** included: /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml for managed-node2 TASK [fedora.linux_system_roles.logging : Initialize ports variables] ********** task path: /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:3 Monday 07 July 2025 09:07:56 -0400 (0:00:00.090) 0:00:02.954 *********** ok: [managed-node2] => { "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-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:15 Monday 07 July 2025 09:07:57 -0400 (0:00:00.068) 0:00:03.023 *********** ok: [managed-node2] => { "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-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:35 Monday 07 July 2025 09:07:57 -0400 (0:00:00.087) 0:00:03.111 *********** ok: [managed-node2] => { "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-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:55 Monday 07 July 2025 09:07:57 -0400 (0:00:00.138) 0:00:03.249 *********** ok: [managed-node2] => { "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-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:58 Monday 07 July 2025 09:07:57 -0400 (0:00:00.175) 0:00:03.424 *********** included: /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml for managed-node2 TASK [fedora.linux_system_roles.logging : Initialize logging_firewall_ports] *** task path: /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:7 Monday 07 July 2025 09:07:57 -0400 (0:00:00.155) 0:00:03.579 *********** ok: [managed-node2] => { "ansible_facts": { "logging_firewall_ports": [] }, "changed": false } TASK [fedora.linux_system_roles.logging : Add tcp ports to logging_firewall_ports] *** task path: /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:11 Monday 07 July 2025 09:07:57 -0400 (0:00:00.114) 0:00:03.694 *********** ok: [managed-node2] => (item=1514/tcp) => { "ansible_facts": { "logging_firewall_ports": [ { "port": "1514/tcp", "state": "enabled" } ] }, "ansible_loop_var": "item", "changed": false, "item": "1514/tcp" } ok: [managed-node2] => (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-node2] => (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-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:17 Monday 07 July 2025 09:07:57 -0400 (0:00:00.262) 0:00:03.956 *********** skipping: [managed-node2] => { "changed": false, "skipped_reason": "No items in the list" } TASK [Manage firewall for specified ports] ************************************* task path: /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:23 Monday 07 July 2025 09:07:58 -0400 (0:00:00.081) 0:00:04.037 *********** ERROR! the role 'fedora.linux_system_roles.firewall' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/tests/logging/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/tests/logging The error appears to be in '/tmp/collections-F3B/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-node2]: FAILED! => { "changed": false, "reason": "the role 'fedora.linux_system_roles.firewall' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/tests/logging/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/tests/logging\n\nThe error appears to be in '/tmp/collections-F3B/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-node2 : 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:07:58.136658+00:00Z", "host": "managed-node2", "message": "No message could be found", "start_time": "2025-07-07T13:07:58.020398+00:00Z", "task_name": "Manage firewall for specified ports", "task_path": "/tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:23" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Monday 07 July 2025 09:07:58 -0400 (0:00:00.118) 0:00:04.155 *********** =============================================================================== Gathering Facts --------------------------------------------------------- 1.43s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml:2 fedora.linux_system_roles.logging : Run systemctl ----------------------- 0.59s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml:7 fedora.linux_system_roles.logging : Add tcp ports to logging_firewall_ports --- 0.26s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:11 fedora.linux_system_roles.logging : Update port values from inputs ------ 0.18s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:55 fedora.linux_system_roles.logging : Manage firewall on the gathered ports --- 0.16s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:58 fedora.linux_system_roles.logging : Update port values from outputs ----- 0.14s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:35 Manage firewall for specified ports ------------------------------------- 0.12s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:23 TEST CASE 0; Test the server configuration containing tls tcp, plain tcp and udp connection --- 0.11s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml:28 fedora.linux_system_roles.logging : Initialize logging_firewall_ports --- 0.11s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:7 fedora.linux_system_roles.logging : Require installed systemd ----------- 0.10s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml:14 fedora.linux_system_roles.logging : Check logging_inputs item in logging_flows.inputs --- 0.09s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:45 fedora.linux_system_roles.logging : Gather ports specified in the logging_inputs and outputs vars --- 0.09s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:55 fedora.linux_system_roles.logging : Set rsyslog_inputs ------------------ 0.09s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:21 fedora.linux_system_roles.logging : Parameter 'port' values ------------- 0.09s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:15 fedora.linux_system_roles.logging : Add udp ports to logging_firewall_ports --- 0.08s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:17 fedora.linux_system_roles.logging : Use of type custom is deprecated ---- 0.08s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:32 fedora.linux_system_roles.logging : Use of rsyslog_custom_config_files is deprecated --- 0.07s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:25 fedora.linux_system_roles.logging : Set rsyslog_outputs ----------------- 0.07s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:17 fedora.linux_system_roles.logging : Initialize ports variables ---------- 0.07s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:3 fedora.linux_system_roles.logging : Set files output if files output is not defined and logging_inputs is not empty --- 0.07s /tmp/collections-F3B/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:10