ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp_xvdndkd executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file 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_default.yml **************************************************** 1 plays in /tmp/tmpbwzvnpbn/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** META: ran handlers TASK [default run (NOOP)] ****************************************************** task path: /tmp/tmpbwzvnpbn/tests/tests_default.yml:8 Wednesday 27 July 2022 00:46:28 +0000 (0:00:00.039) 0:00:00.039 ******** TASK [linux-system-roles.logging : Set files output if files output is not defined and logging_inputs is not empty] *** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:5 Wednesday 27 July 2022 00:46:28 +0000 (0:00:00.033) 0:00:00.072 ******** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.logging : Set rsyslog_outputs] ************************ task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:17 Wednesday 27 July 2022 00:46:28 +0000 (0:00:00.036) 0:00:00.109 ******** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "rsyslog_outputs": [] }, "changed": false } TASK [linux-system-roles.logging : Set rsyslog_inputs] ************************* task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:24 Wednesday 27 July 2022 00:46:28 +0000 (0:00:00.045) 0:00:00.154 ******** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "rsyslog_inputs": [] }, "changed": false } TASK [linux-system-roles.logging : Set custom_config_files fact] *************** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:30 Wednesday 27 July 2022 00:46:28 +0000 (0:00:00.043) 0:00:00.197 ******** TASK [linux-system-roles.logging : Check logging_inputs item in logging_flows.inputs] *** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:39 Wednesday 27 July 2022 00:46:28 +0000 (0:00:00.017) 0:00:00.215 ******** TASK [linux-system-roles.logging : Re-read facts after adding custom fact] ***** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:53 Wednesday 27 July 2022 00:46:28 +0000 (0:00:00.016) 0:00:00.231 ******** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.logging : Create rsyslog debug dir] ******************* task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:57 Wednesday 27 July 2022 00:46:28 +0000 (0:00:00.033) 0:00:00.265 ******** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.logging : Delete debug file] ************************** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:63 Wednesday 27 July 2022 00:46:28 +0000 (0:00:00.033) 0:00:00.299 ******** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.logging : Create rsyslog debug file] ****************** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:69 Wednesday 27 July 2022 00:46:29 +0000 (0:00:00.032) 0:00:00.332 ******** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.logging : Use a debug var to avoid an empty dict in with_dict] *** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:75 Wednesday 27 July 2022 00:46:29 +0000 (0:00:00.033) 0:00:00.365 ******** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.logging : Populate rsyslog debug file] **************** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:79 Wednesday 27 July 2022 00:46:29 +0000 (0:00:00.032) 0:00:00.398 ******** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include Rsyslog role] **************************************************** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:98 Wednesday 27 July 2022 00:46:29 +0000 (0:00:00.033) 0:00:00.431 ******** TASK [/tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Set platform/version specific variables] *** task path: /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/main.yml:4 Wednesday 27 July 2022 00:46:29 +0000 (0:00:00.030) 0:00:00.461 ******** included: /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/set_vars.yml for /cache/centos-9.qcow2.snap TASK [/tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Ensure ansible_facts used by role] *** task path: /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/set_vars.yml:4 Wednesday 27 July 2022 00:46:29 +0000 (0:00:00.021) 0:00:00.483 ******** fatal: [/cache/centos-9.qcow2.snap]: UNREACHABLE! => { "changed": false, "unreachable": true } MSG: Failed to connect to the host via ssh: ssh: connect to host 127.0.0.3 port 4046: Connection refused PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=3 changed=0 unreachable=1 failed=0 skipped=9 rescued=0 ignored=0 Wednesday 27 July 2022 00:46:29 +0000 (0:00:00.044) 0:00:00.527 ******** =============================================================================== linux-system-roles.logging : Set rsyslog_outputs ------------------------ 0.05s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:17 ----- /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Ensure ansible_facts used by role --- 0.04s /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/set_vars.yml:4 --------------------------- linux-system-roles.logging : Set rsyslog_inputs ------------------------- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:24 ----- linux-system-roles.logging : Set files output if files output is not defined and logging_inputs is not empty --- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:5 ------ linux-system-roles.logging : Re-read facts after adding custom fact ----- 0.03s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:53 ----- linux-system-roles.logging : Create rsyslog debug dir ------------------- 0.03s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:57 ----- linux-system-roles.logging : Populate rsyslog debug file ---------------- 0.03s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:79 ----- linux-system-roles.logging : Create rsyslog debug file ------------------ 0.03s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:69 ----- default run (NOOP) ------------------------------------------------------ 0.03s /tmp/tmpbwzvnpbn/tests/tests_default.yml:8 ------------------------------------ linux-system-roles.logging : Delete debug file -------------------------- 0.03s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:63 ----- linux-system-roles.logging : Use a debug var to avoid an empty dict in with_dict --- 0.03s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:75 ----- Include Rsyslog role ---------------------------------------------------- 0.03s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:98 ----- /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Set platform/version specific variables --- 0.02s /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/main.yml:4 ------------------------------- linux-system-roles.logging : Set custom_config_files fact --------------- 0.02s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:30 ----- linux-system-roles.logging : Check logging_inputs item in logging_flows.inputs --- 0.02s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:39 ----- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp_xvdndkd executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file 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_default.yml **************************************************** 1 plays in /tmp/tmpmlw6qd7v/tests/logging/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** META: ran handlers TASK [default run (NOOP)] ****************************************************** task path: /tmp/tmpmlw6qd7v/tests/logging/tests_default.yml:8 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.041) 0:00:00.041 ******** TASK [fedora.linux_system_roles.logging : Set files output if files output is not defined and logging_inputs is not empty] *** task path: /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:5 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.040) 0:00:00.081 ******** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.logging : Set rsyslog_outputs] ***************** task path: /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:12 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.040) 0:00:00.122 ******** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "rsyslog_outputs": [] }, "changed": false } TASK [fedora.linux_system_roles.logging : Set rsyslog_inputs] ****************** task path: /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:16 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.045) 0:00:00.167 ******** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "rsyslog_inputs": [] }, "changed": false } TASK [fedora.linux_system_roles.logging : Set custom_config_files fact] ******** task path: /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:20 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.044) 0:00:00.211 ******** TASK [fedora.linux_system_roles.logging : Check logging_inputs item in logging_flows.inputs] *** task path: /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:29 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.018) 0:00:00.229 ******** TASK [fedora.linux_system_roles.logging : Re-read facts after adding custom fact] *** task path: /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:41 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.016) 0:00:00.246 ******** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.logging : Create rsyslog debug dir] ************ task path: /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:45 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.032) 0:00:00.278 ******** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.logging : Delete debug file] ******************* task path: /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:51 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.033) 0:00:00.312 ******** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.logging : Create rsyslog debug file] *********** task path: /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:57 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.033) 0:00:00.345 ******** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.logging : Use a debug var to avoid an empty dict in with_dict] *** task path: /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:63 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.036) 0:00:00.382 ******** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.logging : Populate rsyslog debug file] ********* task path: /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:67 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.033) 0:00:00.416 ******** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include Rsyslog role] **************************************************** task path: /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:84 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.036) 0:00:00.452 ******** TASK [fedora.linux_system_roles.private_logging_subrole_rsyslog : Set platform/version specific variables] *** task path: /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/private_logging_subrole_rsyslog/tasks/main.yml:4 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.031) 0:00:00.484 ******** included: /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/private_logging_subrole_rsyslog/tasks/set_vars.yml for /cache/centos-9.qcow2.snap TASK [fedora.linux_system_roles.private_logging_subrole_rsyslog : Ensure ansible_facts used by role] *** task path: /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/private_logging_subrole_rsyslog/tasks/set_vars.yml:4 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.023) 0:00:00.507 ******** fatal: [/cache/centos-9.qcow2.snap]: UNREACHABLE! => { "changed": false, "unreachable": true } MSG: Failed to connect to the host via ssh: ssh: connect to host 127.0.0.3 port 2718: Connection refused PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=3 changed=0 unreachable=1 failed=0 skipped=9 rescued=0 ignored=0 Wednesday 27 July 2022 02:41:54 +0000 (0:00:00.052) 0:00:00.560 ******** =============================================================================== fedora.linux_system_roles.private_logging_subrole_rsyslog : Ensure ansible_facts used by role --- 0.05s /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/private_logging_subrole_rsyslog/tasks/set_vars.yml:4 fedora.linux_system_roles.logging : Set rsyslog_outputs ----------------- 0.05s /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:12 fedora.linux_system_roles.logging : Set rsyslog_inputs ------------------ 0.04s /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:16 default run (NOOP) ------------------------------------------------------ 0.04s /tmp/tmpmlw6qd7v/tests/logging/tests_default.yml:8 ---------------------------- fedora.linux_system_roles.logging : Set files output if files output is not defined and logging_inputs is not empty --- 0.04s /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:5 fedora.linux_system_roles.logging : Create rsyslog debug file ----------- 0.04s /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:57 fedora.linux_system_roles.logging : Populate rsyslog debug file --------- 0.04s /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:67 fedora.linux_system_roles.logging : Delete debug file ------------------- 0.03s /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:51 fedora.linux_system_roles.logging : Use a debug var to avoid an empty dict in with_dict --- 0.03s /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:63 fedora.linux_system_roles.logging : Create rsyslog debug dir ------------ 0.03s /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:45 fedora.linux_system_roles.logging : Re-read facts after adding custom fact --- 0.03s /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:41 Include Rsyslog role ---------------------------------------------------- 0.03s /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:84 fedora.linux_system_roles.private_logging_subrole_rsyslog : Set platform/version specific variables --- 0.02s /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/private_logging_subrole_rsyslog/tasks/main.yml:4 fedora.linux_system_roles.logging : Set custom_config_files fact -------- 0.02s /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:20 fedora.linux_system_roles.logging : Check logging_inputs item in logging_flows.inputs --- 0.02s /tmp/tmp_xvdndkd/ansible_collections/fedora/linux_system_roles/roles/logging/tasks/main.yml:29