[WARNING]: Skipping plugin (/tmp/collections-djS/ansible_collections/ansible/posix/plugins/callback/cgroup_perf_recap.py), cannot load: cannot import name 'json' from 'ansible.parsing.ajson' (/usr/local/lib/python3.13/site-packages/ansible/parsing/ajson.py) [WARNING]: Deprecation warnings can be disabled by setting `deprecation_warnings=False` in ansible.cfg. [DEPRECATION WARNING]: The 'ansible.posix.profile_tasks' callback plugin implements the following deprecated method(s): playbook_on_stats. This feature will be removed from the callback plugin API in ansible-core version 2.23. Implement the `v2_*` equivalent callback method(s) instead. ansible-playbook [core 2.19.0b7] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.13/site-packages/ansible ansible collection location = /tmp/collections-djS executable location = /usr/local/bin/ansible-playbook python version = 3.13.3 (main, Apr 22 2025, 00:00:00) [GCC 15.0.1 20250418 (Red Hat 15.0.1-0)] (/usr/bin/python3.13) jinja version = 3.1.6 pyyaml version = 6.0.2 (with libyaml v0.2.5) No config file found; using defaults running playbook inside collection fedora.linux_system_roles Skipping callback 'json', as we already have a stdout callback. Skipping callback 'jsonl', as we already have a stdout callback. 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_basic.yml ****************************************************** 11 plays in /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/tests/systemd/tests_basic.yml PLAY [Ensure that deploying unit files work correctly] ************************* TASK [fedora.linux_system_roles.systemd : Ensure ansible_facts used by role] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:3 Saturday 28 June 2025 19:13:53 -0400 (0:00:00.050) 0:00:00.050 ********* [WARNING]: Host 'managed-node1' is using the discovered Python interpreter at '/usr/bin/python3.13', but future installation of another Python interpreter could cause a different interpreter to be discovered. See https://docs.ansible.com/ansible-core/devel/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node1] TASK [fedora.linux_system_roles.systemd : Support for user units only available in EL7 and later] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:13 Saturday 28 June 2025 19:13:54 -0400 (0:00:01.298) 0:00:01.349 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_facts[\"distribution_major_version\"] is version(\"8\", \"<\")", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.systemd : Support for user units only available in EL7 and later] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:27 Saturday 28 June 2025 19:13:54 -0400 (0:00:00.020) 0:00:01.369 ********* META: end_host conditional evaluated to False, continuing execution for managed-node1 skipping: [managed-node1] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for managed-node1" } MSG: end_host conditional evaluated to false, continuing execution for managed-node1 TASK [fedora.linux_system_roles.systemd : Check if system is ostree] *********** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:40 Saturday 28 June 2025 19:13:54 -0400 (0:00:00.008) 0:00:01.377 ********* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.systemd : Set flag to indicate system is ostree] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:45 Saturday 28 June 2025 19:13:55 -0400 (0:00:00.563) 0:00:01.941 ********* ok: [managed-node1] => { "ansible_facts": { "__systemd_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.systemd : Check if transactional-update exists in /sbin] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:52 Saturday 28 June 2025 19:13:55 -0400 (0:00:00.020) 0:00:01.962 ********* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.systemd : Set flag if transactional-update exists] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:57 Saturday 28 June 2025 19:13:55 -0400 (0:00:00.444) 0:00:02.406 ********* ok: [managed-node1] => { "ansible_facts": { "__systemd_is_transactional": false }, "changed": false } TASK [fedora.linux_system_roles.systemd : Ensure required packages are installed] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:61 Saturday 28 June 2025 19:13:55 -0400 (0:00:00.043) 0:00:02.449 ********* ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: systemd TASK [fedora.linux_system_roles.systemd : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:73 Saturday 28 June 2025 19:14:05 -0400 (0:00:09.645) 0:00:12.095 ********* skipping: [managed-node1] => { "false_condition": "__systemd_is_transactional | d(false)" } TASK [fedora.linux_system_roles.systemd : Reboot transactional update systems] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:78 Saturday 28 June 2025 19:14:05 -0400 (0:00:00.027) 0:00:12.122 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__systemd_is_transactional | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.systemd : Fail if reboot is needed and not set] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:83 Saturday 28 June 2025 19:14:05 -0400 (0:00:00.026) 0:00:12.148 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__systemd_is_transactional | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.systemd : Reset __systemd_user_info] *********** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:90 Saturday 28 June 2025 19:14:05 -0400 (0:00:00.027) 0:00:12.175 ********* ok: [managed-node1] => { "ansible_facts": { "__systemd_user_info": {} }, "changed": false } TASK [fedora.linux_system_roles.systemd : Manage files and templates and their directories] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:94 Saturday 28 June 2025 19:14:05 -0400 (0:00:00.018) 0:00:12.194 ********* included: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml for managed-node1 => (item=systemd_unit_files) included: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml for managed-node1 => (item=systemd_unit_file_templates) included: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml for managed-node1 => (item=systemd_dropins) TASK [fedora.linux_system_roles.systemd : Manage user info] ******************** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:17 Saturday 28 June 2025 19:14:05 -0400 (0:00:00.058) 0:00:12.252 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__systemd_list | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.systemd : Ensure directories are present for users] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:29 Saturday 28 June 2025 19:14:05 -0400 (0:00:00.035) 0:00:12.288 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__systemd_list | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.systemd : Ensure directories are present for dropins] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:37 Saturday 28 June 2025 19:14:05 -0400 (0:00:00.037) 0:00:12.326 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__systemd_list | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.systemd : Ensure unit files are present] ******* task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:46 Saturday 28 June 2025 19:14:05 -0400 (0:00:00.037) 0:00:12.364 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__systemd_list | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.systemd : Ensure unit file templates are present] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:57 Saturday 28 June 2025 19:14:05 -0400 (0:00:00.046) 0:00:12.410 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__systemd_list | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.systemd : Ensure unit files are absent] ******** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:68 Saturday 28 June 2025 19:14:05 -0400 (0:00:00.038) 0:00:12.448 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__systemd_list | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.systemd : Find files in dropins directory] ***** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:76 Saturday 28 June 2025 19:14:05 -0400 (0:00:00.038) 0:00:12.487 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__systemd_list | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.systemd : Remove dropin directory if no more files] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:83 Saturday 28 June 2025 19:14:05 -0400 (0:00:00.038) 0:00:12.526 ********* skipping: [managed-node1] => { "changed": false, "skipped_reason": "No items in the list" } TASK [fedora.linux_system_roles.systemd : Manage user info] ******************** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:17 Saturday 28 June 2025 19:14:05 -0400 (0:00:00.027) 0:00:12.554 ********* included: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_user_info.yml for managed-node1 TASK [fedora.linux_system_roles.systemd : Get user information] **************** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_user_info.yml:27 Saturday 28 June 2025 19:14:05 -0400 (0:00:00.044) 0:00:12.599 ********* included: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/get_update_user_info.yml for managed-node1 => (item=root) TASK [fedora.linux_system_roles.systemd : Get user information] **************** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/get_update_user_info.yml:7 Saturday 28 June 2025 19:14:05 -0400 (0:00:00.056) 0:00:12.656 ********* ok: [managed-node1] => { "ansible_facts": { "getent_passwd": { "root": [ "x", "0", "0", "Super User", "/root", "/bin/bash" ] } }, "changed": false } TASK [fedora.linux_system_roles.systemd : Update systemd user info with new user info] *** task path: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/get_update_user_info.yml:14 Saturday 28 June 2025 19:14:06 -0400 (0:00:00.652) 0:00:13.309 ********* [ERROR]: Task failed: Finalization of task args for 'ansible.builtin.set_fact' failed: Error while resolving value for '__systemd_user_info': access to attribute '__setitem__' of '_AnsibleLazyTemplateDict' object is unsafe. Task failed. Origin: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/get_update_user_info.yml:14:3 12 when: "'getent_passwd' not in ansible_facts or __systemd_user_name not in ansible_facts['getent_passwd']" 13 14 - name: Update systemd user info with new user info ^ column 3 <<< caused by >>> Finalization of task args for 'ansible.builtin.set_fact' failed. Origin: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/get_update_user_info.yml:16:3 14 - name: Update systemd user info with new user info 15 when: __systemd_user_name not in __systemd_user_info 16 set_fact: ^ column 3 <<< caused by >>> Error while resolving value for '__systemd_user_info': access to attribute '__setitem__' of '_AnsibleLazyTemplateDict' object is unsafe. Origin: /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/get_update_user_info.yml:17:26 15 when: __systemd_user_name not in __systemd_user_info 16 set_fact: 17 __systemd_user_info: | ^ column 26 fatal: [managed-node1]: FAILED! => { "changed": false } MSG: Task failed: Finalization of task args for 'ansible.builtin.set_fact' failed: Error while resolving value for '__systemd_user_info': access to attribute '__setitem__' of '_AnsibleLazyTemplateDict' object is unsafe. PLAY RECAP ********************************************************************* managed-node1 : ok=13 changed=0 unreachable=0 failed=1 skipped=12 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.19.0b7", "end_time": "2025-06-28T23:14:06.644418+00:00Z", "host": "managed-node1", "message": "Task failed: Finalization of task args for 'ansible.builtin.set_fact' failed: Error while resolving value for '__systemd_user_info': access to attribute '__setitem__' of '_AnsibleLazyTemplateDict' object is unsafe.", "start_time": "2025-06-28T23:14:06.600376+00:00Z", "task_name": "Update systemd user info with new user info", "task_path": "/tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/get_update_user_info.yml:14" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 28 June 2025 19:14:06 -0400 (0:00:00.045) 0:00:13.355 ********* =============================================================================== fedora.linux_system_roles.systemd : Ensure required packages are installed --- 9.65s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:61 fedora.linux_system_roles.systemd : Ensure ansible_facts used by role --- 1.30s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:3 fedora.linux_system_roles.systemd : Get user information ---------------- 0.65s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/get_update_user_info.yml:7 fedora.linux_system_roles.systemd : Check if system is ostree ----------- 0.56s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:40 fedora.linux_system_roles.systemd : Check if transactional-update exists in /sbin --- 0.44s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:52 fedora.linux_system_roles.systemd : Manage files and templates and their directories --- 0.06s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:94 fedora.linux_system_roles.systemd : Get user information ---------------- 0.06s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_user_info.yml:27 fedora.linux_system_roles.systemd : Ensure unit files are present ------- 0.05s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:46 fedora.linux_system_roles.systemd : Update systemd user info with new user info --- 0.05s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/get_update_user_info.yml:14 fedora.linux_system_roles.systemd : Manage user info -------------------- 0.05s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:17 fedora.linux_system_roles.systemd : Set flag if transactional-update exists --- 0.04s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:57 fedora.linux_system_roles.systemd : Find files in dropins directory ----- 0.04s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:76 fedora.linux_system_roles.systemd : Ensure unit file templates are present --- 0.04s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:57 fedora.linux_system_roles.systemd : Ensure unit files are absent -------- 0.04s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:68 fedora.linux_system_roles.systemd : Ensure directories are present for dropins --- 0.04s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:37 fedora.linux_system_roles.systemd : Ensure directories are present for users --- 0.04s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:29 fedora.linux_system_roles.systemd : Manage user info -------------------- 0.04s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:17 fedora.linux_system_roles.systemd : Remove dropin directory if no more files --- 0.03s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/manage_unit_files.yml:83 fedora.linux_system_roles.systemd : Fail if reboot is needed and not set --- 0.03s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:83 fedora.linux_system_roles.systemd : Notify user that reboot is needed to apply changes --- 0.03s /tmp/collections-djS/ansible_collections/fedora/linux_system_roles/roles/systemd/tasks/main.yml:73