ansible-playbook [core 2.17.14] 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-1Z3 executable location = /usr/local/bin/ansible-playbook python version = 3.12.13 (main, Jul 20 2026, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-14)] (/usr/bin/python3.12) jinja version = 3.1.6 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles Skipping callback 'debug', 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 '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-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:3 Friday 07 August 2026 21:40:58 -0400 (0:00:00.017) 0:00:00.017 ********* [WARNING]: Platform linux on host managed-node1 is using the discovered Python interpreter at /usr/bin/python3.9, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node1] TASK [See if /dev/log exists for the fingerprint check] ************************ task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:6 Friday 07 August 2026 21:41:00 -0400 (0:00:02.182) 0:00:02.200 ********* ok: [managed-node1] => { "changed": false, "stat": { "atime": 1786153258.787617, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1786153122.0270007, "dev": 6, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 121, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/run/systemd/journal/dev-log", "lnk_target": "/run/systemd/journal/dev-log", "mimetype": "inode/symlink", "mode": "0777", "mtime": 1786153114.224, "nlink": 1, "path": "/dev/log", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 28, "uid": 0, "version": null, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [Set the start time for the journal search] ******************************* task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:10 Friday 07 August 2026 21:41:01 -0400 (0:00:00.422) 0:00:02.622 ********* ok: [managed-node1] => { "ansible_facts": { "__journal_start_time": "2026-08-07 21:41:00" }, "changed": false } TASK [Run role with cleared facts] ********************************************* task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:14 Friday 07 August 2026 21:41:01 -0400 (0:00:00.015) 0:00:02.638 ********* included: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tasks/run_role_with_clear_facts.yml for managed-node1 TASK [Clear facts] ************************************************************* task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tasks/run_role_with_clear_facts.yml:9 Friday 07 August 2026 21:41:01 -0400 (0:00:00.037) 0:00:02.676 ********* META: facts cleared TASK [Run the role] ************************************************************ task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tasks/run_role_with_clear_facts.yml:23 Friday 07 August 2026 21:41:01 -0400 (0:00:00.000) 0:00:02.676 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__sr_failed_when is defined", "skip_reason": "Conditional result was False" } TASK [Run the role normally] *************************************************** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tasks/run_role_with_clear_facts.yml:33 Friday 07 August 2026 21:41:01 -0400 (0:00:00.014) 0:00:02.691 ********* included: fedora.linux_system_roles.template for managed-node1 TASK [fedora.linux_system_roles.template : Set platform/version specific variables] *** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/main.yml:3 Friday 07 August 2026 21:41:01 -0400 (0:00:00.053) 0:00:02.744 ********* included: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.template : Ensure ansible_facts used by role] *** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/set_vars.yml:2 Friday 07 August 2026 21:41:01 -0400 (0:00:00.015) 0:00:02.760 ********* ok: [managed-node1] TASK [fedora.linux_system_roles.template : Record role begin fingerprint] ****** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/set_vars.yml:7 Friday 07 August 2026 21:41:01 -0400 (0:00:00.501) 0:00:03.261 ********* ok: [managed-node1] => { "changed": false, "fingerprint": { "ansible_check_mode": false, "ansible_version": "2.17.14", "date": "2026-08-07T21:41:02-04:00", "managed_node_distro": "CentOS-9", "play_hosts_number": 1, "role_name": "template", "role_path": "/tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template", "status": "begin" } } TASK [fedora.linux_system_roles.template : Check if system is ostree] ********** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/set_vars.yml:20 Friday 07 August 2026 21:41:02 -0400 (0:00:00.385) 0:00:03.647 ********* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.template : Set flag to indicate system is ostree] *** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/set_vars.yml:25 Friday 07 August 2026 21:41:02 -0400 (0:00:00.314) 0:00:03.961 ********* ok: [managed-node1] => { "ansible_facts": { "__template_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.template : Set platform/version specific variables] *** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/set_vars.yml:29 Friday 07 August 2026 21:41:02 -0400 (0:00:00.018) 0:00:03.980 ********* skipping: [managed-node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed-node1] => (item=CentOS_9.yml) => { "ansible_facts": { "__template_packages": [], "__template_services": [] }, "ansible_included_var_files": [ "/tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [managed-node1] => (item=CentOS_9.yml) => { "ansible_facts": { "__template_packages": [], "__template_services": [] }, "ansible_included_var_files": [ "/tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [fedora.linux_system_roles.template : Ensure required packages are installed] *** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/main.yml:7 Friday 07 August 2026 21:41:02 -0400 (0:00:00.033) 0:00:04.014 ********* ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: TASK [fedora.linux_system_roles.template : Ensure required services are enabled and started] *** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/main.yml:13 Friday 07 August 2026 21:41:15 -0400 (0:00:12.489) 0:00:16.503 ********* skipping: [managed-node1] => { "changed": false, "skipped_reason": "No items in the list" } TASK [fedora.linux_system_roles.template : Generate /etc/foo.conf] ************* task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/main.yml:20 Friday 07 August 2026 21:41:15 -0400 (0:00:00.010) 0:00:16.514 ********* Notification for handler Handler for template to restart services has been saved. changed: [managed-node1] => { "changed": true, "checksum": "608ec785ba92141bf4a18a5fc9cddf3a954d9d9a", "dest": "/etc/foo.conf", "gid": 0, "group": "root", "md5sum": "1955272cddc0f09b7dbd047243cc5304", "mode": "0400", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 154, "src": "/root/.ansible/tmp/ansible-tmp-1786153275.2193215-9324-35924453585483/.source.conf", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.template : Record role success fingerprint] **** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/main.yml:28 Friday 07 August 2026 21:41:15 -0400 (0:00:00.678) 0:00:17.192 ********* ok: [managed-node1] => { "changed": false, "fingerprint": { "ansible_check_mode": false, "ansible_version": "2.17.14", "date": "2026-08-07T21:41:16-04:00", "managed_node_distro": "CentOS-9", "play_hosts_number": 1, "role_name": "template", "role_path": "/tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template", "status": "success" } } TASK [Get fingerprint entries from journal] ************************************ task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:19 Friday 07 August 2026 21:41:16 -0400 (0:00:00.316) 0:00:17.509 ********* ok: [managed-node1] => { "changed": false, "cmd": "set -eo pipefail; journalctl --since \"2026-08-07 21:41:00\" --no-pager | grep -v \" Invoked with\" | grep \"sr_fingerprint.*role_name=template\"", "delta": "0:00:00.009427", "end": "2026-08-07 21:41:16.534018", "rc": 0, "start": "2026-08-07 21:41:16.524591" } STDOUT: Aug 07 21:41:02 managed-node1 python3.9[9449]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-07T21:41:02-04:00 role_name=template role_path=/tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template status=begin ansible_version=2.17.14 managed_node_distro=CentOS-9 play_hosts_number=1 ansible_check_mode=False Aug 07 21:41:16 managed-node1 python3.9[10274]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-07T21:41:16-04:00 role_name=template role_path=/tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template status=success ansible_version=2.17.14 managed_node_distro=CentOS-9 play_hosts_number=1 ansible_check_mode=False TASK [Check that the log file was written] ************************************* task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:31 Friday 07 August 2026 21:41:16 -0400 (0:00:00.398) 0:00:17.907 ********* ok: [managed-node1] => { "changed": false, "content": "eyJkYXRlIjoiMjAyNi0wOC0wN1QyMTo0MTowMi0wNDowMCIsInJvbGVfbmFtZSI6InRlbXBsYXRlIiwicm9sZV9wYXRoIjoiL3RtcC9jb2xsZWN0aW9ucy0xWjMvYW5zaWJsZV9jb2xsZWN0aW9ucy9mZWRvcmEvbGludXhfc3lzdGVtX3JvbGVzL3JvbGVzL3RlbXBsYXRlIiwic3RhdHVzIjoiYmVnaW4iLCJhbnNpYmxlX3ZlcnNpb24iOiIyLjE3LjE0IiwibWFuYWdlZF9ub2RlX2Rpc3RybyI6IkNlbnRPUy05IiwicGxheV9ob3N0c19udW1iZXIiOjEsImFuc2libGVfY2hlY2tfbW9kZSI6ZmFsc2V9CnsiZGF0ZSI6IjIwMjYtMDgtMDdUMjE6NDE6MTYtMDQ6MDAiLCJyb2xlX25hbWUiOiJ0ZW1wbGF0ZSIsInJvbGVfcGF0aCI6Ii90bXAvY29sbGVjdGlvbnMtMVozL2Fuc2libGVfY29sbGVjdGlvbnMvZmVkb3JhL2xpbnV4X3N5c3RlbV9yb2xlcy9yb2xlcy90ZW1wbGF0ZSIsInN0YXR1cyI6InN1Y2Nlc3MiLCJhbnNpYmxlX3ZlcnNpb24iOiIyLjE3LjE0IiwibWFuYWdlZF9ub2RlX2Rpc3RybyI6IkNlbnRPUy05IiwicGxheV9ob3N0c19udW1iZXIiOjEsImFuc2libGVfY2hlY2tfbW9kZSI6ZmFsc2V9Cg==", "encoding": "base64", "source": "/var/log/sysroles.jsonl" } TASK [Print contents of logs] ************************************************** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:46 Friday 07 August 2026 21:41:16 -0400 (0:00:00.389) 0:00:18.297 ********* ok: [managed-node1] => (item={"date":"2026-08-07T21:41:02-04:00","role_name":"template","role_path":"/tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template","status":"begin","ansible_version":"2.17.14","managed_node_distro":"CentOS-9","play_hosts_number":1,"ansible_check_mode":false} {"date":"2026-08-07T21:41:16-04:00","role_name":"template","role_path":"/tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template","status":"success","ansible_version":"2.17.14","managed_node_distro":"CentOS-9","play_hosts_number":1,"ansible_check_mode":false} ) => { "ansible_loop_var": "item", "item": "{\"date\":\"2026-08-07T21:41:02-04:00\",\"role_name\":\"template\",\"role_path\":\"/tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template\",\"status\":\"begin\",\"ansible_version\":\"2.17.14\",\"managed_node_distro\":\"CentOS-9\",\"play_hosts_number\":1,\"ansible_check_mode\":false}\n{\"date\":\"2026-08-07T21:41:16-04:00\",\"role_name\":\"template\",\"role_path\":\"/tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template\",\"status\":\"success\",\"ansible_version\":\"2.17.14\",\"managed_node_distro\":\"CentOS-9\",\"play_hosts_number\":1,\"ansible_check_mode\":false}\n" } ok: [managed-node1] => (item=['Aug 07 21:41:02 managed-node1 python3.9[9449]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-07T21:41:02-04:00 role_name=template role_path=/tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template status=begin ansible_version=2.17.14 managed_node_distro=CentOS-9 play_hosts_number=1 ansible_check_mode=False', 'Aug 07 21:41:16 managed-node1 python3.9[10274]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-07T21:41:16-04:00 role_name=template role_path=/tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template status=success ansible_version=2.17.14 managed_node_distro=CentOS-9 play_hosts_number=1 ansible_check_mode=False']) => { "ansible_loop_var": "item", "item": [ "Aug 07 21:41:02 managed-node1 python3.9[9449]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-07T21:41:02-04:00 role_name=template role_path=/tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template status=begin ansible_version=2.17.14 managed_node_distro=CentOS-9 play_hosts_number=1 ansible_check_mode=False", "Aug 07 21:41:16 managed-node1 python3.9[10274]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-07T21:41:16-04:00 role_name=template role_path=/tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template status=success ansible_version=2.17.14 managed_node_distro=CentOS-9 play_hosts_number=1 ansible_check_mode=False" ] } TASK [Assert content is correct] *********************************************** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:53 Friday 07 August 2026 21:41:16 -0400 (0:00:00.024) 0:00:18.322 ********* ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Check header for ansible_managed, fingerprint] *************************** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:60 Friday 07 August 2026 21:41:17 -0400 (0:00:00.030) 0:00:18.352 ********* included: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tasks/check_header.yml for managed-node1 TASK [Get file] **************************************************************** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tasks/check_header.yml:3 Friday 07 August 2026 21:41:17 -0400 (0:00:00.010) 0:00:18.362 ********* ok: [managed-node1] => { "changed": false, "content": "IyBTUERYLUxpY2Vuc2UtSWRlbnRpZmllcjogTUlUCiMKIyBFeGFtcGxlIG9mIGEgdGVtcGxhdGUgb2YgY29uZmlndXJhdGlvbiBmaWxlCiMKIwojIEFuc2libGUgbWFuYWdlZAojCiMgc3lzdGVtX3JvbGU6dGVtcGxhdGUKCltmb29dCmZvbyA9IGZvbwpiYXIgPSBUcnVlCg==", "encoding": "base64", "source": "/etc/foo.conf" } TASK [Check for presence of ansible managed header, fingerprint] *************** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tasks/check_header.yml:9 Friday 07 August 2026 21:41:17 -0400 (0:00:00.305) 0:00:18.668 ********* ok: [managed-node1] => { "changed": false } MSG: All assertions passed NOTIFIED HANDLER fedora.linux_system_roles.template : Handler for template to restart services for managed-node1 RUNNING HANDLER [fedora.linux_system_roles.template : Handler for template to restart services] *** task path: /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/handlers/main.yml:3 Friday 07 August 2026 21:41:17 -0400 (0:00:00.023) 0:00:18.691 ********* skipping: [managed-node1] => { "changed": false, "skipped_reason": "No items in the list" } PLAY RECAP ********************************************************************* managed-node1 : ok=21 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Friday 07 August 2026 21:41:17 -0400 (0:00:00.008) 0:00:18.699 ********* =============================================================================== fedora.linux_system_roles.template : Ensure required packages are installed -- 12.49s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/main.yml:7 Gathering Facts --------------------------------------------------------- 2.18s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:3 fedora.linux_system_roles.template : Generate /etc/foo.conf ------------- 0.68s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/main.yml:20 fedora.linux_system_roles.template : Ensure ansible_facts used by role --- 0.50s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/set_vars.yml:2 See if /dev/log exists for the fingerprint check ------------------------ 0.42s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:6 Get fingerprint entries from journal ------------------------------------ 0.40s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:19 Check that the log file was written ------------------------------------- 0.39s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:31 fedora.linux_system_roles.template : Record role begin fingerprint ------ 0.39s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/set_vars.yml:7 fedora.linux_system_roles.template : Record role success fingerprint ---- 0.32s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/main.yml:28 fedora.linux_system_roles.template : Check if system is ostree ---------- 0.31s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/set_vars.yml:20 Get file ---------------------------------------------------------------- 0.31s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tasks/check_header.yml:3 Run the role normally --------------------------------------------------- 0.05s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tasks/run_role_with_clear_facts.yml:33 Run role with cleared facts --------------------------------------------- 0.04s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:14 fedora.linux_system_roles.template : Set platform/version specific variables --- 0.03s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/set_vars.yml:29 Assert content is correct ----------------------------------------------- 0.03s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:53 Print contents of logs -------------------------------------------------- 0.02s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:46 Check for presence of ansible managed header, fingerprint --------------- 0.02s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tasks/check_header.yml:9 fedora.linux_system_roles.template : Set flag to indicate system is ostree --- 0.02s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/set_vars.yml:25 Set the start time for the journal search ------------------------------- 0.02s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/tests/template/tests_default.yml:10 fedora.linux_system_roles.template : Set platform/version specific variables --- 0.02s /tmp/collections-1Z3/ansible_collections/fedora/linux_system_roles/roles/template/tasks/main.yml:3