ansible-playbook [core 2.16.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-uyc executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/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: 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/collections-uyc/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Run the role with default parameters] ************************************ task path: /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:9 Saturday 26 October 2024 15:21:34 -0400 (0:00:00.009) 0:00:00.009 ****** TASK [fedora.linux_system_roles.rhc : Set ansible_facts required by role] ****** task path: /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:3 Saturday 26 October 2024 15:21:34 -0400 (0:00:00.018) 0:00:00.028 ****** included: /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.rhc : Ensure ansible_facts used by role] ******* task path: /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 Saturday 26 October 2024 15:21:34 -0400 (0:00:00.016) 0:00:00.044 ****** ok: [managed-node1] TASK [fedora.linux_system_roles.rhc : Check if system is ostree] *************** task path: /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:11 Saturday 26 October 2024 15:21:35 -0400 (0:00:01.111) 0:00:01.156 ****** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.rhc : Set flag to indicate system is ostree] *** task path: /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:16 Saturday 26 October 2024 15:21:36 -0400 (0:00:00.475) 0:00:01.632 ****** ok: [managed-node1] => { "ansible_facts": { "__rhc_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.rhc : Check if insights-packages are installed] *** task path: /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:20 Saturday 26 October 2024 15:21:36 -0400 (0:00:00.030) 0:00:01.663 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_distribution == \"RedHat\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Handle insights unregistration] ********** task path: /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:6 Saturday 26 October 2024 15:21:36 -0400 (0:00:00.018) 0:00:01.681 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_distribution == \"RedHat\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Handle system subscription] ************** task path: /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 Saturday 26 October 2024 15:21:36 -0400 (0:00:00.018) 0:00:01.700 ****** included: /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml for managed-node1 TASK [fedora.linux_system_roles.rhc : Ensure required packages are installed] *** task path: /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 Saturday 26 October 2024 15:21:36 -0400 (0:00:00.076) 0:00:01.776 ****** changed: [managed-node1] => { "changed": true, "rc": 0, "results": [ "Installed: python3-librepo-1.14.2-5.el8.x86_64", "Installed: python3-cloud-what-1.28.42-1.el8.x86_64", "Installed: python3-subscription-manager-rhsm-1.28.42-1.el8.x86_64", "Installed: usermode-1.113-2.el8.x86_64", "Installed: python3-ethtool-0.14-5.el8.x86_64", "Installed: dnf-plugin-subscription-manager-1.28.42-1.el8.x86_64", "Installed: subscription-manager-rhsm-certificates-20220623-1.el8.noarch", "Installed: subscription-manager-1.28.42-1.el8.x86_64", "Installed: python3-iniparse-0.4-31.el8.noarch", "Installed: python3-inotify-0.9.6-13.el8.noarch" ] } lsrpackages: subscription-manager TASK [fedora.linux_system_roles.rhc : Get subscription status] ***************** task path: /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:10 Saturday 26 October 2024 15:21:54 -0400 (0:00:18.669) 0:00:20.446 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "not rhc_release is none", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Call subscription-manager] *************** task path: /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23 Saturday 26 October 2024 15:21:54 -0400 (0:00:00.038) 0:00:20.484 ****** fatal: [managed-node1]: FAILED! => { "changed": false } MSG: state is present but any of the following are missing: username, activationkey, token TASK [Assert that the role failed with missing credentials] ******************** task path: /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:18 Saturday 26 October 2024 15:21:55 -0400 (0:00:00.965) 0:00:21.450 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* managed-node1 : ok=7 changed=1 unreachable=0 failed=0 skipped=3 rescued=1 ignored=0 Saturday 26 October 2024 15:21:55 -0400 (0:00:00.020) 0:00:21.471 ****** =============================================================================== fedora.linux_system_roles.rhc : Ensure required packages are installed -- 18.67s /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 fedora.linux_system_roles.rhc : Ensure ansible_facts used by role ------- 1.11s /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 fedora.linux_system_roles.rhc : Call subscription-manager --------------- 0.97s /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23 fedora.linux_system_roles.rhc : Check if system is ostree --------------- 0.48s /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:11 fedora.linux_system_roles.rhc : Handle system subscription -------------- 0.08s /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 fedora.linux_system_roles.rhc : Get subscription status ----------------- 0.04s /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:10 fedora.linux_system_roles.rhc : Set flag to indicate system is ostree --- 0.03s /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:16 Assert that the role failed with missing credentials -------------------- 0.02s /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:18 fedora.linux_system_roles.rhc : Check if insights-packages are installed --- 0.02s /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:20 Run the role with default parameters ------------------------------------ 0.02s /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:9 fedora.linux_system_roles.rhc : Handle insights unregistration ---------- 0.02s /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:6 fedora.linux_system_roles.rhc : Set ansible_facts required by role ------ 0.02s /tmp/collections-uyc/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:3