[WARNING]: Deprecation warnings can be disabled by setting `deprecation_warnings=False` in ansible.cfg. [DEPRECATION WARNING]: The 'ansible.posix.profile_tasks' callback plugin implements the following deprecated method(s): playbook_on_stats. This feature will be removed from the callback plugin API in ansible-core version 2.23. Implement the `v2_*` equivalent callback method(s) instead. ansible-playbook [core 2.19.0rc1] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.13/site-packages/ansible ansible collection location = /tmp/collections-yPx executable location = /usr/local/bin/ansible-playbook python version = 3.13.3 (main, Apr 22 2025, 00:00:00) [GCC 15.0.1 20250418 (Red Hat 15.0.1-0)] (/usr/bin/python3.13) jinja version = 3.1.6 pyyaml version = 6.0.2 (with libyaml v0.2.5) No config file found; using defaults running playbook inside collection fedora.linux_system_roles 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-yPx/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-yPx/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml:2 Sunday 06 July 2025 13:44:59 -0400 (0:00:00.044) 0:00:00.044 *********** [WARNING]: Host 'managed-node2' is using the discovered Python interpreter at '/usr/bin/python3.13', but future installation of another Python interpreter could cause a different interpreter to be discovered. See https://docs.ansible.com/ansible-core/2.19/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node2] TASK [Set firewall and selinux to true] **************************************** task path: /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml:23 Sunday 06 July 2025 13:45:00 -0400 (0:00:01.449) 0:00:01.493 *********** 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-yPx/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml:28 Sunday 06 July 2025 13:45:00 -0400 (0:00:00.018) 0:00:01.511 *********** included: fedora.linux_system_roles.logging for managed-node2 TASK [fedora.linux_system_roles.logging : Set global variables] **************** task path: /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:2 Sunday 06 July 2025 13:45:00 -0400 (0:00:00.053) 0:00:01.565 *********** included: /tmp/collections-yPx/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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml:7 Sunday 06 July 2025 13:45:00 -0400 (0:00:00.020) 0:00:01.585 *********** ok: [managed-node2] => { "changed": false, "cmd": [ "systemctl", "is-system-running" ], "delta": "0:00:00.009477", "end": "2025-07-06 13:45:01.565227", "failed_when_result": false, "rc": 0, "start": "2025-07-06 13:45:01.555750" } STDOUT: running TASK [fedora.linux_system_roles.logging : Require installed systemd] *********** task path: /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml:14 Sunday 06 July 2025 13:45:01 -0400 (0:00:00.653) 0:00:02.239 *********** 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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml:19 Sunday 06 July 2025 13:45:01 -0400 (0:00:00.042) 0:00:02.281 *********** 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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:10 Sunday 06 July 2025 13:45:01 -0400 (0:00:00.032) 0:00:02.314 *********** 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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:17 Sunday 06 July 2025 13:45:01 -0400 (0:00:00.068) 0:00:02.382 *********** 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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:21 Sunday 06 July 2025 13:45:01 -0400 (0:00:00.069) 0:00:02.451 *********** 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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:25 Sunday 06 July 2025 13:45:01 -0400 (0:00:00.096) 0:00:02.548 *********** 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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:32 Sunday 06 July 2025 13:45:02 -0400 (0:00:00.063) 0:00:02.611 *********** 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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:45 Sunday 06 July 2025 13:45:02 -0400 (0:00:00.056) 0:00:02.668 *********** 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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:55 Sunday 06 July 2025 13:45:02 -0400 (0:00:00.062) 0:00:02.730 *********** included: /tmp/collections-yPx/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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:3 Sunday 06 July 2025 13:45:02 -0400 (0:00:00.071) 0:00:02.802 *********** 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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:15 Sunday 06 July 2025 13:45:02 -0400 (0:00:00.045) 0:00:02.848 *********** 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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:35 Sunday 06 July 2025 13:45:02 -0400 (0:00:00.043) 0:00:02.891 *********** 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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:55 Sunday 06 July 2025 13:45:02 -0400 (0:00:00.063) 0:00:02.955 *********** 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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:58 Sunday 06 July 2025 13:45:02 -0400 (0:00:00.059) 0:00:03.014 *********** included: /tmp/collections-yPx/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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:7 Sunday 06 July 2025 13:45:02 -0400 (0:00:00.042) 0:00:03.057 *********** 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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:11 Sunday 06 July 2025 13:45:02 -0400 (0:00:00.048) 0:00:03.106 *********** 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-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:17 Sunday 06 July 2025 13:45:02 -0400 (0:00:00.158) 0:00:03.264 *********** skipping: [managed-node2] => { "changed": false, "skipped_reason": "No items in the list" } TASK [Manage firewall for specified ports] ************************************* task path: /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:23 Sunday 06 July 2025 13:45:02 -0400 (0:00:00.057) 0:00:03.322 *********** [ERROR]: the role 'fedora.linux_system_roles.firewall' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/tests/logging/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/tests/logging Origin: /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:25:15 23 - name: Manage firewall for specified ports 24 include_role: 25 name: fedora.linux_system_roles.firewall ^ column 15 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-yPx/ansible_collections/fedora/linux_system_roles/tests/logging/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/tests/logging" } 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.19.0rc1", "end_time": "2025-07-06T17:45:02.791558+00:00Z", "host": "managed-node2", "message": "No message could be found", "start_time": "2025-07-06T17:45:02.718729+00:00Z", "task_name": "Manage firewall for specified ports", "task_path": "/tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:23" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Sunday 06 July 2025 13:45:02 -0400 (0:00:00.074) 0:00:03.396 *********** =============================================================================== Gathering Facts --------------------------------------------------------- 1.45s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml:2 fedora.linux_system_roles.logging : Run systemctl ----------------------- 0.65s /tmp/collections-yPx/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.16s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:11 fedora.linux_system_roles.logging : Set rsyslog_inputs ------------------ 0.10s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:21 Manage firewall for specified ports ------------------------------------- 0.07s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:23 fedora.linux_system_roles.logging : Gather ports specified in the logging_inputs and outputs vars --- 0.07s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:55 fedora.linux_system_roles.logging : Set rsyslog_outputs ----------------- 0.07s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:17 fedora.linux_system_roles.logging : Set files output if files output is not defined and logging_inputs is not empty --- 0.07s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:10 fedora.linux_system_roles.logging : Update port values from outputs ----- 0.06s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:35 fedora.linux_system_roles.logging : Use of rsyslog_custom_config_files is deprecated --- 0.06s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:25 fedora.linux_system_roles.logging : Check logging_inputs item in logging_flows.inputs --- 0.06s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:45 fedora.linux_system_roles.logging : Update port values from inputs ------ 0.06s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:55 fedora.linux_system_roles.logging : Add udp ports to logging_firewall_ports --- 0.06s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:17 fedora.linux_system_roles.logging : Use of type custom is deprecated ---- 0.06s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:32 TEST CASE 0; Test the server configuration containing tls tcp, plain tcp and udp connection --- 0.05s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/tests/logging/tests_relp.yml:28 fedora.linux_system_roles.logging : Initialize logging_firewall_ports --- 0.05s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/firewall.yml:7 fedora.linux_system_roles.logging : Initialize ports variables ---------- 0.05s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:3 fedora.linux_system_roles.logging : Parameter 'port' values ------------- 0.04s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/gather_ports.yml:15 fedora.linux_system_roles.logging : Manage firewall on the gathered ports --- 0.04s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:58 fedora.linux_system_roles.logging : Require installed systemd ----------- 0.04s /tmp/collections-yPx/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/set_vars.yml:14