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 'jsonl', 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-O5T/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** META: ran handlers TASK [Run the role with default parameters] ************************************ task path: /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:9 Saturday 08 November 2025 14:20:48 -0500 (0:00:00.019) 0:00:00.019 ***** TASK [fedora.linux_system_roles.rhc : Set ansible_facts required by role] ****** task path: /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:3 Saturday 08 November 2025 14:20:48 -0500 (0:00:00.017) 0:00:00.037 ***** included: /tmp/collections-O5T/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-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 Saturday 08 November 2025 14:20:49 -0500 (0:00:00.083) 0:00:00.120 ***** ok: [managed-node1] TASK [fedora.linux_system_roles.rhc : Check if system is ostree] *************** task path: /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:11 Saturday 08 November 2025 14:20:49 -0500 (0:00:00.861) 0:00:00.981 ***** 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-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:16 Saturday 08 November 2025 14:20:50 -0500 (0:00:00.440) 0:00:01.422 ***** 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-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:20 Saturday 08 November 2025 14:20:50 -0500 (0:00:00.035) 0:00:01.457 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Handle insights unregistration] ********** task path: /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:6 Saturday 08 November 2025 14:20:50 -0500 (0:00:00.028) 0:00:01.486 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Handle system subscription] ************** task path: /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 Saturday 08 November 2025 14:20:50 -0500 (0:00:00.027) 0:00:01.514 ***** included: /tmp/collections-O5T/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-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 Saturday 08 November 2025 14:20:50 -0500 (0:00:00.021) 0:00:01.535 ***** 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-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:10 Saturday 08 November 2025 14:21:07 -0500 (0:00:16.562) 0:00:18.098 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Call subscription-manager] *************** task path: /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23 Saturday 08 November 2025 14:21:07 -0500 (0:00:00.033) 0:00:18.131 ***** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: SyntaxError: future feature annotations is not defined fatal: [managed-node1]: FAILED! => { "changed": false, "rc": 1 } MSG: MODULE FAILURE See stdout/stderr for the exact error MODULE_STDOUT: Traceback (most recent call last): File "/root/.ansible/tmp/ansible-tmp-1762629667.1699183-7850-37523856622558/AnsiballZ_redhat_subscription.py", line 102, in _ansiballz_main() File "/root/.ansible/tmp/ansible-tmp-1762629667.1699183-7850-37523856622558/AnsiballZ_redhat_subscription.py", line 94, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/root/.ansible/tmp/ansible-tmp-1762629667.1699183-7850-37523856622558/AnsiballZ_redhat_subscription.py", line 40, in invoke_module runpy.run_module(mod_name='ansible_collections.community.general.plugins.modules.redhat_subscription', init_globals=None, run_name='__main__', alter_sys=True) File "/usr/lib64/python3.6/runpy.py", line 201, in run_module mod_name, mod_spec, code = _get_module_details(mod_name) File "/usr/lib64/python3.6/runpy.py", line 128, in _get_module_details spec = importlib.util.find_spec(mod_name) File "/usr/lib64/python3.6/importlib/util.py", line 89, in find_spec return _find_spec(fullname, parent.__path__) File "", line 894, in _find_spec File "", line 1157, in find_spec File "", line 1131, in _get_spec File "", line 1112, in _legacy_get_spec File "", line 441, in spec_from_loader File "", line 544, in spec_from_file_location File "/tmp/ansible_community.general.redhat_subscription_payload_frl7xnv_/ansible_community.general.redhat_subscription_payload.zip/ansible_collections/community/general/plugins/modules/redhat_subscription.py", line 8 SyntaxError: future feature annotations is not defined MODULE_STDERR: Shared connection to 10.31.46.154 closed. TASK [Assert that the role failed with missing credentials] ******************** task path: /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:18 Saturday 08 November 2025 14:21:07 -0500 (0:00:00.476) 0:00:18.608 ***** fatal: [managed-node1]: FAILED! => { "assertion": "'state is present but any of the following are missing' in ansible_failed_result.msg", "changed": false, "evaluated_to": false } MSG: Assertion failed PLAY RECAP ********************************************************************* managed-node1 : ok=6 changed=1 unreachable=0 failed=1 skipped=3 rescued=1 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.9.27", "end_time": "2025-11-08T19:21:07.565618+00:00Z", "host": "managed-node1", "message": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1, "start_time": "2025-11-08T19:21:07.092305+00:00Z", "task_name": "Call subscription-manager", "task_path": "/tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23" }, { "ansible_version": "2.9.27", "end_time": "2025-11-08T19:21:07.599204+00:00Z", "host": "managed-node1", "message": "Assertion failed", "start_time": "2025-11-08T19:21:07.569002+00:00Z", "task_name": "Assert that the role failed with missing credentials", "task_path": "/tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:18" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 08 November 2025 14:21:07 -0500 (0:00:00.032) 0:00:18.641 ***** =============================================================================== fedora.linux_system_roles.rhc : Ensure required packages are installed -- 16.56s /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 fedora.linux_system_roles.rhc : Ensure ansible_facts used by role ------- 0.86s /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 fedora.linux_system_roles.rhc : Call subscription-manager --------------- 0.48s /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23 fedora.linux_system_roles.rhc : Check if system is ostree --------------- 0.44s /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:11 fedora.linux_system_roles.rhc : Set ansible_facts required by role ------ 0.08s /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:3 fedora.linux_system_roles.rhc : Set flag to indicate system is ostree --- 0.04s /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:16 fedora.linux_system_roles.rhc : Get subscription status ----------------- 0.03s /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:10 Assert that the role failed with missing credentials -------------------- 0.03s /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:18 fedora.linux_system_roles.rhc : Check if insights-packages are installed --- 0.03s /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:20 fedora.linux_system_roles.rhc : Handle insights unregistration ---------- 0.03s /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:6 fedora.linux_system_roles.rhc : Handle system subscription -------------- 0.02s /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 Run the role with default parameters ------------------------------------ 0.02s /tmp/collections-O5T/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_default.yml:9 -- Logs begin at Sat 2025-11-08 14:17:19 EST, end at Sat 2025-11-08 14:21:07 EST. -- Nov 08 14:20:48 managed-node1 sshd[7033]: Accepted publickey for root from 10.31.42.172 port 51228 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Nov 08 14:20:48 managed-node1 systemd-logind[620]: New session 6 of user root. -- Subject: A new session 6 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 6 has been created for the user root. -- -- The leading process of the session is 7033. Nov 08 14:20:48 managed-node1 systemd[1]: Started Session 6 of user root. -- Subject: Unit session-6.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-6.scope has finished starting up. -- -- The start-up result is done. Nov 08 14:20:48 managed-node1 sshd[7033]: pam_unix(sshd:session): session opened for user root by (uid=0) Nov 08 14:20:48 managed-node1 sshd[7036]: Received disconnect from 10.31.42.172 port 51228:11: disconnected by user Nov 08 14:20:48 managed-node1 sshd[7036]: Disconnected from user root 10.31.42.172 port 51228 Nov 08 14:20:48 managed-node1 sshd[7033]: pam_unix(sshd:session): session closed for user root Nov 08 14:20:48 managed-node1 systemd[1]: session-6.scope: Succeeded. -- Subject: Unit succeeded -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- The unit session-6.scope has successfully entered the 'dead' state. Nov 08 14:20:48 managed-node1 systemd-logind[620]: Session 6 logged out. Waiting for processes to exit. Nov 08 14:20:48 managed-node1 systemd-logind[620]: Removed session 6. -- Subject: Session 6 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 6 has been terminated. Nov 08 14:20:49 managed-node1 sshd[7058]: Accepted publickey for root from 10.31.42.172 port 51230 ssh2: ECDSA SHA256:7tV+4r/1rRCam0ILhv5aWnO3ErrXak3pFqIPmQYx2zc Nov 08 14:20:49 managed-node1 systemd[1]: Started Session 7 of user root. -- Subject: Unit session-7.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-7.scope has finished starting up. -- -- The start-up result is done. Nov 08 14:20:49 managed-node1 systemd-logind[620]: New session 7 of user root. -- Subject: A new session 7 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 7 has been created for the user root. -- -- The leading process of the session is 7058. Nov 08 14:20:49 managed-node1 sshd[7058]: pam_unix(sshd:session): session opened for user root by (uid=0) Nov 08 14:20:49 managed-node1 platform-python[7203]: ansible-setup Invoked with gather_subset=['!all', '!min', 'distribution', 'distribution_major_version', 'distribution_version'] gather_timeout=10 filter=* fact_path=/etc/ansible/facts.d Nov 08 14:20:50 managed-node1 platform-python[7330]: 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 Nov 08 14:20:50 managed-node1 platform-python[7453]: ansible-setup Invoked with filter=ansible_pkg_mgr gather_subset=['!all'] gather_timeout=10 fact_path=/etc/ansible/facts.d Nov 08 14:20:51 managed-node1 platform-python[7521]: ansible-dnf Invoked with name=['subscription-manager'] state=present allow_downgrade=False autoremove=False bugfix=False disable_gpg_check=False disable_plugin=[] disablerepo=[] download_only=False enable_plugin=[] enablerepo=[] exclude=[] installroot=/ install_repoquery=True install_weak_deps=True security=False skip_broken=False update_cache=False update_only=False validate_certs=True lock_timeout=30 conf_file=None disable_excludes=None download_dir=None list=None releasever=None Nov 08 14:21:05 managed-node1 dbus-daemon[619]: [system] Reloaded configuration Nov 08 14:21:05 managed-node1 dbus-daemon[619]: [system] Reloaded configuration Nov 08 14:21:05 managed-node1 dbus-daemon[619]: [system] Reloaded configuration Nov 08 14:21:05 managed-node1 dbus-daemon[619]: [system] Reloaded configuration Nov 08 14:21:05 managed-node1 dbus-daemon[619]: [system] Reloaded configuration Nov 08 14:21:06 managed-node1 dbus-daemon[619]: [system] Reloaded configuration Nov 08 14:21:06 managed-node1 dbus-daemon[619]: [system] Reloaded configuration Nov 08 14:21:06 managed-node1 systemd[1]: Started /usr/bin/systemctl start man-db-cache-update. -- Subject: Unit run-r5435d002d595471c84a6e350815cd23e.service has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit run-r5435d002d595471c84a6e350815cd23e.service has finished starting up. -- -- The start-up result is done. Nov 08 14:21:06 managed-node1 systemd[1]: cgroup compatibility translation between legacy and unified hierarchy settings activated. See cgroup-compat debug messages for details. Nov 08 14:21:06 managed-node1 systemd[1]: Starting man-db-cache-update.service... -- Subject: Unit man-db-cache-update.service has begun start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit man-db-cache-update.service has begun starting up. Nov 08 14:21:06 managed-node1 systemd[1]: Reloading. Nov 08 14:21:06 managed-node1 systemd[1]: man-db-cache-update.service: Succeeded. -- Subject: Unit succeeded -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- The unit man-db-cache-update.service has successfully entered the 'dead' state. Nov 08 14:21:06 managed-node1 systemd[1]: Started man-db-cache-update.service. -- Subject: Unit man-db-cache-update.service has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit man-db-cache-update.service has finished starting up. -- -- The start-up result is done. Nov 08 14:21:07 managed-node1 systemd[1]: run-r5435d002d595471c84a6e350815cd23e.service: Succeeded. -- Subject: Unit succeeded -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- The unit run-r5435d002d595471c84a6e350815cd23e.service has successfully entered the 'dead' state. Nov 08 14:21:07 managed-node1 sshd[7849]: Accepted publickey for root from 10.31.42.172 port 38474 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Nov 08 14:21:07 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. Nov 08 14:21:07 managed-node1 systemd-logind[620]: 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 7849. Nov 08 14:21:07 managed-node1 sshd[7849]: pam_unix(sshd:session): session opened for user root by (uid=0) Nov 08 14:21:07 managed-node1 sshd[7852]: Received disconnect from 10.31.42.172 port 38474:11: disconnected by user Nov 08 14:21:07 managed-node1 sshd[7852]: Disconnected from user root 10.31.42.172 port 38474 Nov 08 14:21:07 managed-node1 sshd[7849]: pam_unix(sshd:session): session closed for user root Nov 08 14:21:07 managed-node1 systemd[1]: session-8.scope: Succeeded. -- Subject: Unit succeeded -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- The unit session-8.scope has successfully entered the 'dead' state. Nov 08 14:21:07 managed-node1 systemd-logind[620]: Session 8 logged out. Waiting for processes to exit. Nov 08 14:21:07 managed-node1 systemd-logind[620]: Removed session 8. -- Subject: Session 8 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 8 has been terminated. Nov 08 14:21:07 managed-node1 sshd[7873]: Accepted publickey for root from 10.31.42.172 port 38478 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Nov 08 14:21:07 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. Nov 08 14:21:07 managed-node1 systemd-logind[620]: 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 7873. Nov 08 14:21:07 managed-node1 sshd[7873]: pam_unix(sshd:session): session opened for user root by (uid=0)