[DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ansible-playbook [core 2.17.2] 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/tmp.rfhy5ZjrdN executable location = /usr/local/bin/ansible-playbook python version = 3.12.4 (main, Jun 7 2024, 00:00:00) [GCC 14.1.1 20240607 (Red Hat 14.1.1-5)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles redirecting (type: action) ansible.builtin.yum to ansible.builtin.dnf redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks 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/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tests_default.yml PLAY [Test executing the role with default parameters] ************************* TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Saturday 03 August 2024 08:51:56 -0400 (0:00:00.024) 0:00:00.024 ******* included: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Saturday 03 August 2024 08:51:56 -0400 (0:00:00.018) 0:00:00.043 ******* ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:12 Saturday 03 August 2024 08:51:57 -0400 (0:00:00.799) 0:00:00.842 ******* ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:17 Saturday 03 August 2024 08:51:57 -0400 (0:00:00.451) 0:00:01.293 ******* ok: [managed_node1] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 Saturday 03 August 2024 08:51:57 -0400 (0:00:00.020) 0:00:01.314 ******* ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Saturday 03 August 2024 08:52:00 -0400 (0:00:02.619) 0:00:03.933 ******* ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Saturday 03 August 2024 08:52:01 -0400 (0:00:01.133) 0:00:05.067 ******* ok: [managed_node1] => {} MSG: Using network provider: nm TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Saturday 03 August 2024 08:52:01 -0400 (0:00:00.043) 0:00:05.110 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Saturday 03 August 2024 08:52:01 -0400 (0:00:00.032) 0:00:05.143 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying teaming configuration if the system version of the managed host is EL10 or later] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:25 Saturday 03 August 2024 08:52:01 -0400 (0:00:00.032) 0:00:05.176 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution in __network_rh_distros", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:36 Saturday 03 August 2024 08:52:01 -0400 (0:00:00.052) 0:00:05.229 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } redirecting (type: action) ansible.builtin.yum to ansible.builtin.dnf TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:48 Saturday 03 August 2024 08:52:01 -0400 (0:00:00.061) 0:00:05.291 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version | int < 8", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:60 Saturday 03 August 2024 08:52:01 -0400 (0:00:00.052) 0:00:05.343 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:73 Saturday 03 August 2024 08:52:01 -0400 (0:00:00.057) 0:00:05.400 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "not network_packages is subset(ansible_facts.packages.keys())", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:85 Saturday 03 August 2024 08:52:01 -0400 (0:00:00.092) 0:00:05.492 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:96 Saturday 03 August 2024 08:52:01 -0400 (0:00:00.032) 0:00:05.524 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 Saturday 03 August 2024 08:52:01 -0400 (0:00:00.032) 0:00:05.557 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:122 Saturday 03 August 2024 08:52:01 -0400 (0:00:00.059) 0:00:05.616 ******* ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Saturday 03 August 2024 08:52:04 -0400 (0:00:02.841) 0:00:08.457 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wpa_supplicant_required", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:142 Saturday 03 August 2024 08:52:04 -0400 (0:00:00.062) 0:00:08.520 ******* skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:150 Saturday 03 August 2024 08:52:04 -0400 (0:00:00.041) 0:00:08.561 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "network_provider == \"initscripts\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159 Saturday 03 August 2024 08:52:04 -0400 (0:00:00.039) 0:00:08.601 ******* ok: [managed_node1] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:171 Saturday 03 August 2024 08:52:05 -0400 (0:00:00.713) 0:00:09.314 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:177 Saturday 03 August 2024 08:52:05 -0400 (0:00:00.032) 0:00:09.346 ******* ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:181 Saturday 03 August 2024 08:52:05 -0400 (0:00:00.034) 0:00:09.381 ******* ok: [managed_node1] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:186 Saturday 03 August 2024 08:52:05 -0400 (0:00:00.033) 0:00:09.414 ******* skipping: [managed_node1] => { "false_condition": "network_state != {}" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:192 Saturday 03 August 2024 08:52:05 -0400 (0:00:00.030) 0:00:09.445 ******* ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tests_default.yml:9 Saturday 03 August 2024 08:52:06 -0400 (0:00:00.463) 0:00:09.908 ******* included: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml for managed_node1 TASK [Gather the minimum subset of ansible_facts required by the network role test] *** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:3 Saturday 03 August 2024 08:52:06 -0400 (0:00:00.052) 0:00:09.961 ******* ok: [managed_node1] TASK [Check if system is ostree] *********************************************** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:17 Saturday 03 August 2024 08:52:08 -0400 (0:00:02.103) 0:00:12.064 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:22 Saturday 03 August 2024 08:52:08 -0400 (0:00:00.036) 0:00:12.100 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:26 Saturday 03 August 2024 08:52:08 -0400 (0:00:00.036) 0:00:12.137 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution == 'CentOS'", "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:51 Saturday 03 August 2024 08:52:08 -0400 (0:00:00.032) 0:00:12.169 ******* included: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml for managed_node1 TASK [Create EPEL 40] ********************************************************** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:8 Saturday 03 August 2024 08:52:08 -0400 (0:00:00.143) 0:00:12.312 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution in ['RedHat', 'CentOS']", "skip_reason": "Conditional result was False" } TASK [Install yum-utils package] *********************************************** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:24 Saturday 03 August 2024 08:52:08 -0400 (0:00:00.031) 0:00:12.344 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution in ['RedHat', 'CentOS']", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:30 Saturday 03 August 2024 08:52:08 -0400 (0:00:00.030) 0:00:12.375 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution in ['RedHat', 'CentOS']", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:35 Saturday 03 August 2024 08:52:08 -0400 (0:00:00.030) 0:00:12.406 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution in ['RedHat', 'CentOS']", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:40 Saturday 03 August 2024 08:52:08 -0400 (0:00:00.030) 0:00:12.436 ******* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution in ['RedHat', 'CentOS']", "skip_reason": "Conditional result was False" } TASK [Test warning and info logs] ********************************************** task path: /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tests_default.yml:11 Saturday 03 August 2024 08:52:08 -0400 (0:00:00.030) 0:00:12.467 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* managed_node1 : ok=16 changed=0 unreachable=0 failed=0 skipped=23 rescued=0 ignored=0 Saturday 03 August 2024 08:52:08 -0400 (0:00:00.089) 0:00:12.557 ******* =============================================================================== fedora.linux_system_roles.network : Enable and start NetworkManager ----- 2.84s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:122 fedora.linux_system_roles.network : Check which services are running ---- 2.62s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 Gather the minimum subset of ansible_facts required by the network role test --- 2.10s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:3 fedora.linux_system_roles.network : Check which packages are installed --- 1.13s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.80s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 fedora.linux_system_roles.network : Configure networking connection profiles --- 0.71s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159 fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.46s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:192 fedora.linux_system_roles.network : Check if system is ostree ----------- 0.45s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:12 Include the task 'enable_epel.yml' -------------------------------------- 0.14s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:51 fedora.linux_system_roles.network : Install packages -------------------- 0.09s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:73 Test warning and info logs ---------------------------------------------- 0.09s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tests_default.yml:11 fedora.linux_system_roles.network : Enable and start wpa_supplicant ----- 0.06s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces --- 0.06s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:36 fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces --- 0.06s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces --- 0.06s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:60 fedora.linux_system_roles.network : Abort applying teaming configuration if the system version of the managed host is EL10 or later --- 0.05s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:25 Include the task 'el_repo_setup.yml' ------------------------------------ 0.05s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/tests/network/tests_default.yml:9 fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces --- 0.05s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:48 fedora.linux_system_roles.network : Print network provider -------------- 0.04s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 fedora.linux_system_roles.network : Enable network service -------------- 0.04s /tmp/tmp.rfhy5ZjrdN/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:142