ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file [WARNING]: running playbook inside collection fedora.linux_system_roles statically imported: /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml statically imported: /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml statically imported: /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/check_candlepin.yml Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_repositories.yml *********************************************** 1 plays in /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_repositories.yml PLAY [Basic repository enablement/disablement test] **************************** META: ran handlers TASK [Get LSR_RHC_TEST_DATA environment variable] ****************************** task path: /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:3 Monday 05 August 2024 07:51:13 -0400 (0:00:00.025) 0:00:00.025 ********* ok: [managed_node1] => { "ansible_facts": { "lsr_rhc_test_data_file": "" }, "changed": false } TASK [Import test data] ******************************************************** task path: /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:12 Monday 05 August 2024 07:51:13 -0400 (0:00:00.040) 0:00:00.065 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get facts for external test data] **************************************** task path: /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:16 Monday 05 August 2024 07:51:13 -0400 (0:00:00.034) 0:00:00.100 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set local lsr_rhc_test_data] ********************************************* task path: /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:24 Monday 05 August 2024 07:51:13 -0400 (0:00:00.034) 0:00:00.134 ********* ok: [managed_node1] => { "ansible_facts": { "lsr_rhc_test_data": { "baseurl": "http://localhost:8080", "candlepin_host": "candlepin.local", "candlepin_insecure": false, "candlepin_port": 8443, "candlepin_prefix": "/candlepin", "env_nonworking": "Ceci n'est pas une environment", "envs_register": [ "Environment 2" ], "insights": false, "proxy_auth_hostname": "localhost", "proxy_auth_password": "proxypass", "proxy_auth_port": 3130, "proxy_auth_scheme": "https", "proxy_auth_username": "proxyuser", "proxy_noauth_hostname": "localhost", "proxy_noauth_port": 3128, "proxy_noauth_scheme": "https", "proxy_nonworking_hostname": "wrongproxy", "proxy_nonworking_password": "wrong-proxypassword", "proxy_nonworking_port": 4000, "proxy_nonworking_username": "wrong-proxyuser", "reg_activation_keys": [ "default_key" ], "reg_invalid_password": "invalid-password", "reg_invalid_username": "invalid-user", "reg_organization": "admin", "reg_password": "admin", "reg_username": "admin", "release": null, "repositories": [ { "name": "admin-content-label-5051", "state": "enabled" }, { "name": "content-label-32060", "state": "disabled" } ] } }, "ansible_included_var_files": [ "/tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/../files/candlepin_data.yml" ], "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:32 Monday 05 August 2024 07:51:13 -0400 (0:00:00.041) 0:00:00.175 ********* ok: [managed_node1] => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:37 Monday 05 August 2024 07:51:13 -0400 (0:00:00.479) 0:00:00.655 ********* ok: [managed_node1] => { "ansible_facts": { "__rhc_is_ostree": false }, "changed": false } TASK [Get facts for external test data] **************************************** task path: /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:9 Monday 05 August 2024 07:51:13 -0400 (0:00:00.039) 0:00:00.695 ********* ok: [managed_node1] TASK [Set helper fact for Candlepin base URL] ********************************** task path: /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:17 Monday 05 August 2024 07:51:14 -0400 (0:00:00.644) 0:00:01.339 ********* ok: [managed_node1] => { "ansible_facts": { "_cp_url": "https://candlepin.local:8443/candlepin" }, "changed": false } TASK [Set helper fact for Candlepin owner URL] ********************************* task path: /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:21 Monday 05 August 2024 07:51:14 -0400 (0:00:00.039) 0:00:01.379 ********* ok: [managed_node1] => { "ansible_facts": { "_cp_url_owner": "https://candlepin.local:8443/candlepin/owners/admin" }, "changed": false } TASK [Add candlepin hostname to /etc/hosts] ************************************ task path: /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:25 Monday 05 August 2024 07:51:14 -0400 (0:00:00.038) 0:00:01.418 ********* ok: [managed_node1] => { "backup": "", "changed": false } TASK [Install needed packages] ************************************************* task path: /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:31 Monday 05 August 2024 07:51:15 -0400 (0:00:00.417) 0:00:01.836 ********* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [ "podman-1.6.4-36.el7_9.x86_64 providing podman is already installed" ] } TASK [Stop and remove Candlepin container] ************************************* task path: /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:38 Monday 05 August 2024 07:51:16 -0400 (0:00:00.998) 0:00:02.834 ********* An exception occurred during task execution. To see the full traceback, use -vvv. The error was: SyntaxError: invalid syntax fatal: [managed_node1]: FAILED! => {} MSG: Unexpected failure during module execution. PLAY RECAP ********************************************************************* managed_node1 : ok=9 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0 Monday 05 August 2024 07:51:16 -0400 (0:00:00.132) 0:00:02.967 ********* =============================================================================== Install needed packages ------------------------------------------------- 1.00s /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:31 Get facts for external test data ---------------------------------------- 0.64s /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:9 Check if system is ostree ----------------------------------------------- 0.48s /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:32 Add candlepin hostname to /etc/hosts ------------------------------------ 0.42s /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:25 Stop and remove Candlepin container ------------------------------------- 0.13s /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:38 Set local lsr_rhc_test_data --------------------------------------------- 0.04s /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:24 Get LSR_RHC_TEST_DATA environment variable ------------------------------ 0.04s /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:3 Set helper fact for Candlepin base URL ---------------------------------- 0.04s /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:17 Set flag to indicate system is ostree ----------------------------------- 0.04s /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:37 Set helper fact for Candlepin owner URL --------------------------------- 0.04s /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:21 Import test data -------------------------------------------------------- 0.03s /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:12 Get facts for external test data ---------------------------------------- 0.03s /tmp/tmp.Env8v3ftrb/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:16