ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [WARNING]: running playbook inside collection fedora.linux_system_roles 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_default.yml **************************************************** 1 plays in /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:3 Saturday 22 August 2026 15:26:54 -0400 (0:00:00.015) 0:00:00.015 ******* ok: [managed-node1] META: ran handlers TASK [Run the role with default parameters] ************************************ task path: /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:8 Saturday 22 August 2026 15:26:55 -0400 (0:00:00.966) 0:00:00.982 ******* included: /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/run_role_with_clear_facts.yml for managed-node1 META: facts cleared TASK [Run the role] ************************************************************ task path: /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/run_role_with_clear_facts.yml:23 Saturday 22 August 2026 15:26:55 -0400 (0:00:00.015) 0:00:00.997 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run the role normally] *************************************************** task path: /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/run_role_with_clear_facts.yml:33 Saturday 22 August 2026 15:26:55 -0400 (0:00:00.029) 0:00:01.026 ******* TASK [fedora.linux_system_roles.rhc : Set ansible_facts required by role] ****** task path: /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:3 Saturday 22 August 2026 15:26:55 -0400 (0:00:00.053) 0:00:01.080 ******* included: /tmp/collections-9hg/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-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 Saturday 22 August 2026 15:26:55 -0400 (0:00:00.081) 0:00:01.161 ******* ok: [managed-node1] TASK [fedora.linux_system_roles.rhc : Record role begin fingerprint] *********** task path: /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:8 Saturday 22 August 2026 15:26:56 -0400 (0:00:00.476) 0:00:01.637 ******* ok: [managed-node1] => { "changed": false, "fingerprint": { "ansible_check_mode": false, "ansible_version": "2.9.27", "date": "2026-08-22T15:26:56-04:00", "managed_node_distro": "CentOS-8", "play_hosts_number": 1, "role_name": "rhc", "role_path": "/tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc", "status": "begin" } } TASK [fedora.linux_system_roles.rhc : Check if system is ostree] *************** task path: /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:21 Saturday 22 August 2026 15:26:56 -0400 (0:00:00.431) 0:00:02.069 ******* 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-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:26 Saturday 22 August 2026 15:26:57 -0400 (0:00:00.421) 0:00:02.491 ******* 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-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:30 Saturday 22 August 2026 15:26:57 -0400 (0:00:00.024) 0:00:02.515 ******* 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.rhc : Handle insights unregistration] ********** task path: /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:6 Saturday 22 August 2026 15:26:57 -0400 (0:00:00.019) 0:00:02.535 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Handle system subscription] ************** task path: /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 Saturday 22 August 2026 15:26:57 -0400 (0:00:00.017) 0:00:02.552 ******* fatal: [managed-node1]: FAILED! => { "reason": "couldn't resolve module/action 'community.general.redhat_subscription'. This often indicates a misspelling, missing collection, or incorrect module path.\n\nThe error appears to be in '/tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml': line 23, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Call subscription-manager\n ^ here\n" } TASK [Assert that the role failed with missing credentials] ******************** task path: /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:16 Saturday 22 August 2026 15:26:57 -0400 (0:00:00.021) 0:00:02.574 ******* fatal: [managed-node1]: FAILED! => {} MSG: The conditional check ''state is present but any of the following are missing' in ansible_failed_result.msg' failed. The error was: error while evaluating conditional ('state is present but any of the following are missing' in ansible_failed_result.msg): 'ansible_failed_result' is undefined PLAY RECAP ********************************************************************* managed-node1 : ok=7 changed=0 unreachable=0 failed=2 skipped=3 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.9.27", "end_time": "2026-08-22T19:26:57.351449+00:00Z", "host": "managed-node1", "message": "No message could be found", "start_time": "2026-08-22T19:26:57.333042+00:00Z", "task_name": "Handle system subscription", "task_path": "/tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15" }, { "ansible_version": "2.9.27", "end_time": "2026-08-22T19:26:57.372587+00:00Z", "host": "managed-node1", "message": "The conditional check ''state is present but any of the following are missing' in ansible_failed_result.msg' failed. The error was: error while evaluating conditional ('state is present but any of the following are missing' in ansible_failed_result.msg): 'ansible_failed_result' is undefined", "start_time": "2026-08-22T19:26:57.354614+00:00Z", "task_name": "Assert that the role failed with missing credentials", "task_path": "/tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:16" } ] SYSTEM ROLES ERRORS END v1 Saturday 22 August 2026 15:26:57 -0400 (0:00:00.019) 0:00:02.594 ******* =============================================================================== Gathering Facts --------------------------------------------------------- 0.97s /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:3 fedora.linux_system_roles.rhc : Ensure ansible_facts used by role ------- 0.48s /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 fedora.linux_system_roles.rhc : Record role begin fingerprint ----------- 0.43s /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:8 fedora.linux_system_roles.rhc : Check if system is ostree --------------- 0.42s /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:21 fedora.linux_system_roles.rhc : Set ansible_facts required by role ------ 0.08s /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:3 Run the role normally --------------------------------------------------- 0.05s /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/run_role_with_clear_facts.yml:33 Run the role ------------------------------------------------------------ 0.03s /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/run_role_with_clear_facts.yml:23 fedora.linux_system_roles.rhc : Set flag to indicate system is ostree --- 0.02s /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:26 fedora.linux_system_roles.rhc : Handle system subscription -------------- 0.02s /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 Assert that the role failed with missing credentials -------------------- 0.02s /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:16 fedora.linux_system_roles.rhc : Check if insights-packages are installed --- 0.02s /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:30 fedora.linux_system_roles.rhc : Handle insights unregistration ---------- 0.02s /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:6 Run the role with default parameters ------------------------------------ 0.02s /tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:8 -- Logs begin at Sat 2026-08-22 15:23:52 EDT, end at Sat 2026-08-22 15:26:57 EDT. -- Aug 22 15:26:54 managed-node1 sshd[7361]: Accepted publickey for root from 10.31.46.194 port 50014 ssh2: ECDSA SHA256:VkUAICG7xPDp5fLdCaCcrXoNHGAaobqO65xlvjC0RkY Aug 22 15:26:54 managed-node1 systemd[1]: Started Session 8 of user root. -- Subject: Unit session-8.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-8.scope has finished starting up. -- -- The start-up result is done. Aug 22 15:26:54 managed-node1 systemd-logind[615]: New session 8 of user root. -- Subject: A new session 8 has been created for user root -- Defined-By: systemd -- Support: https://access.redhat.com/support -- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 8 has been created for the user root. -- -- The leading process of the session is 7361. Aug 22 15:26:54 managed-node1 sshd[7361]: pam_unix(sshd:session): session opened for user root by (uid=0) Aug 22 15:26:55 managed-node1 platform-python[7506]: ansible-setup Invoked with gather_subset=['all'] gather_timeout=10 filter=* fact_path=/etc/ansible/facts.d Aug 22 15:26:56 managed-node1 platform-python[7693]: ansible-setup Invoked with gather_subset=['!all', '!min', 'distribution', 'distribution_major_version', 'distribution_version'] gather_timeout=10 filter=* fact_path=/etc/ansible/facts.d Aug 22 15:26:56 managed-node1 platform-python[7820]: ansible-fedora.linux_system_roles.sr_fingerprint Invoked with status=begin role_name=rhc role_path=/tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc ansible_play_hosts_all=['managed-node1'] distribution=CentOS distribution_version=8 write_log_file=False log_file=/var/log/sysroles.jsonl max_log_size=2000000 Aug 22 15:26:56 managed-node1 platform-python[7820]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-22T15:26:56-04:00 role_name=rhc role_path=/tmp/collections-9hg/ansible_collections/fedora/linux_system_roles/roles/rhc status=begin ansible_version=2.9.27 managed_node_distro=CentOS-8 play_hosts_number=1 ansible_check_mode=False Aug 22 15:26:57 managed-node1 platform-python[7943]: ansible-stat Invoked with path=/run/ostree-booted follow=False get_md5=False get_checksum=True get_mime=True get_attributes=True checksum_algorithm=sha1 Aug 22 15:26:57 managed-node1 sshd[7964]: Accepted publickey for root from 10.31.46.194 port 50028 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Aug 22 15:26:57 managed-node1 systemd[1]: Started Session 9 of user root. -- Subject: Unit session-9.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-9.scope has finished starting up. -- -- The start-up result is done. Aug 22 15:26:57 managed-node1 systemd-logind[615]: New session 9 of user root. -- Subject: A new session 9 has been created for user root -- Defined-By: systemd -- Support: https://access.redhat.com/support -- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 9 has been created for the user root. -- -- The leading process of the session is 7964. Aug 22 15:26:57 managed-node1 sshd[7964]: pam_unix(sshd:session): session opened for user root by (uid=0) Aug 22 15:26:57 managed-node1 sshd[7967]: Received disconnect from 10.31.46.194 port 50028:11: disconnected by user Aug 22 15:26:57 managed-node1 sshd[7967]: Disconnected from user root 10.31.46.194 port 50028 Aug 22 15:26:57 managed-node1 sshd[7964]: pam_unix(sshd:session): session closed for user root Aug 22 15:26:57 managed-node1 systemd[1]: session-9.scope: Succeeded. -- Subject: Unit succeeded -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- The unit session-9.scope has successfully entered the 'dead' state. Aug 22 15:26:57 managed-node1 systemd-logind[615]: Session 9 logged out. Waiting for processes to exit. Aug 22 15:26:57 managed-node1 systemd-logind[615]: Removed session 9. -- Subject: Session 9 has been terminated -- Defined-By: systemd -- Support: https://access.redhat.com/support -- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A session with the ID 9 has been terminated. Aug 22 15:26:57 managed-node1 sshd[7988]: Accepted publickey for root from 10.31.46.194 port 50034 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Aug 22 15:26:57 managed-node1 systemd[1]: Started Session 10 of user root. -- Subject: Unit session-10.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-10.scope has finished starting up. -- -- The start-up result is done. Aug 22 15:26:57 managed-node1 systemd-logind[615]: New session 10 of user root. -- Subject: A new session 10 has been created for user root -- Defined-By: systemd -- Support: https://access.redhat.com/support -- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 10 has been created for the user root. -- -- The leading process of the session is 7988. Aug 22 15:26:57 managed-node1 sshd[7988]: pam_unix(sshd:session): session opened for user root by (uid=0)