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-6h6 executable location = /usr/local/bin/ansible-playbook python version = 3.12.13 (main, Jul 20 2026, 00:00:00) [GCC 14.3.1 20251022 (Red Hat 14.3.1-4)] (/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 **************************************************** 3 plays in /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml PLAY [Backup configuration files] ********************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:2 Saturday 29 August 2026 19:00:50 -0400 (0:00:00.017) 0:00:00.017 ******* [WARNING]: Platform linux on host managed-node3 is using the discovered Python interpreter at /usr/bin/python3.12, 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-node3] TASK [Backup configuration files] ********************************************** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:9 Saturday 29 August 2026 19:00:52 -0400 (0:00:01.297) 0:00:01.315 ******* included: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml for managed-node3 TASK [Setup] ******************************************************************* task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:2 Saturday 29 August 2026 19:00:52 -0400 (0:00:00.013) 0:00:01.328 ******* included: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml for managed-node3 TASK [Ensure facts used by test] *********************************************** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:2 Saturday 29 August 2026 19:00:52 -0400 (0:00:00.016) 0:00:01.345 ******* skipping: [managed-node3] => { "changed": false, "false_condition": "'os_family' not in ansible_facts", "skip_reason": "Conditional result was False" } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:10 Saturday 29 August 2026 19:00:52 -0400 (0:00:00.020) 0:00:01.365 ******* ok: [managed-node3] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:15 Saturday 29 August 2026 19:00:52 -0400 (0:00:00.578) 0:00:01.944 ******* ok: [managed-node3] => { "ansible_facts": { "__ssh_is_ostree": false }, "changed": false } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:19 Saturday 29 August 2026 19:00:52 -0400 (0:00:00.031) 0:00:01.975 ******* ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: openssh-clients TASK [Define common variables] ************************************************* task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:31 Saturday 29 August 2026 19:00:53 -0400 (0:00:01.041) 0:00:03.017 ******* ok: [managed-node3] => { "ansible_facts": { "main_ssh_config": "/etc/ssh/ssh_config", "main_ssh_config_name": "ssh_config", "main_ssh_config_path": "/etc/ssh/" }, "changed": false } TASK [Define specific variables] *********************************************** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:37 Saturday 29 August 2026 19:00:53 -0400 (0:00:00.012) 0:00:03.029 ******* ok: [managed-node3] => { "ansible_facts": { "main_ssh_config": "/etc/ssh/ssh_config.d/00-ansible.conf", "main_ssh_config_name": "00-ansible.conf", "main_ssh_config_path": "/etc/ssh/ssh_config.d/" }, "changed": false } TASK [Create a temporary directory for backup files] *************************** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:5 Saturday 29 August 2026 19:00:53 -0400 (0:00:00.033) 0:00:03.063 ******* ok: [managed-node3] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.3ksjekrb", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:13 Saturday 29 August 2026 19:00:54 -0400 (0:00:00.488) 0:00:03.551 ******* ok: [managed-node3] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh_config.d/00-ansible.conf; then\n mkdir -p /tmp/ansible.3ksjekrb/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp -a /etc/ssh_config.d/00-ansible.conf /tmp/ansible.3ksjekrb/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003266", "end": "2026-08-29 19:00:54.856900", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2026-08-29 19:00:54.853634" } ok: [managed-node3] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh_config; then\n mkdir -p /tmp/ansible.3ksjekrb/$(dirname /etc/ssh_config);\n cp -a /etc/ssh_config /tmp/ansible.3ksjekrb/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003191", "end": "2026-08-29 19:00:55.201703", "item": "/etc/ssh_config", "rc": 0, "start": "2026-08-29 19:00:55.198512" } PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:12 Saturday 29 August 2026 19:00:55 -0400 (0:00:00.899) 0:00:04.451 ******* ok: [managed-node3] TASK [See if /dev/log exists for the fingerprint check] ************************ task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:15 Saturday 29 August 2026 19:00:56 -0400 (0:00:00.874) 0:00:05.326 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1788044455.8089757, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1788044273.2730005, "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": 1788044268.3392792, "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-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:20 Saturday 29 August 2026 19:00:56 -0400 (0:00:00.370) 0:00:05.696 ******* ok: [managed-node3] => { "ansible_facts": { "__journal_start_time": "2026-08-29 19:00:56" }, "changed": false } TASK [Run role] **************************************************************** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:25 Saturday 29 August 2026 19:00:56 -0400 (0:00:00.031) 0:00:05.728 ******* included: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/run_role_with_clear_facts.yml for managed-node3 TASK [Clear facts] ************************************************************* task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/run_role_with_clear_facts.yml:9 Saturday 29 August 2026 19:00:56 -0400 (0:00:00.032) 0:00:05.761 ******* META: facts cleared TASK [Run the role] ************************************************************ task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/run_role_with_clear_facts.yml:23 Saturday 29 August 2026 19:00:56 -0400 (0:00:00.001) 0:00:05.762 ******* skipping: [managed-node3] => { "changed": false, "false_condition": "__sr_failed_when is defined", "skip_reason": "Conditional result was False" } TASK [Run the role normally] *************************************************** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/run_role_with_clear_facts.yml:33 Saturday 29 August 2026 19:00:56 -0400 (0:00:00.029) 0:00:05.791 ******* included: fedora.linux_system_roles.ssh for managed-node3 TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Saturday 29 August 2026 19:00:56 -0400 (0:00:00.172) 0:00:05.964 ******* included: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for managed-node3 TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Saturday 29 August 2026 19:00:56 -0400 (0:00:00.033) 0:00:05.998 ******* ok: [managed-node3] TASK [fedora.linux_system_roles.ssh : Record role begin fingerprint] *********** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Saturday 29 August 2026 19:00:57 -0400 (0:00:00.617) 0:00:06.616 ******* ok: [managed-node3] => { "changed": false, "fingerprint": { "ansible_check_mode": false, "ansible_version": "2.17.14", "date": "2026-08-29T19:00:58-04:00", "managed_node_distro": "CentOS-10", "play_hosts_number": 1, "role_name": "ssh", "role_path": "/tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh", "status": "begin" } } TASK [fedora.linux_system_roles.ssh : Check if system is ostree] *************** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:20 Saturday 29 August 2026 19:00:58 -0400 (0:00:00.614) 0:00:07.230 ******* skipping: [managed-node3] => { "changed": false, "false_condition": "not __ssh_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Set flag to indicate system is ostree] *** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:25 Saturday 29 August 2026 19:00:58 -0400 (0:00:00.015) 0:00:07.246 ******* skipping: [managed-node3] => { "changed": false, "false_condition": "not __ssh_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Check if transactional-update exists in /sbin] *** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:32 Saturday 29 August 2026 19:00:58 -0400 (0:00:00.015) 0:00:07.262 ******* ok: [managed-node3] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.ssh : Set flag if transactional-update exists] *** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:37 Saturday 29 August 2026 19:00:58 -0400 (0:00:00.343) 0:00:07.605 ******* ok: [managed-node3] => { "ansible_facts": { "__ssh_is_transactional": false }, "changed": false } TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:41 Saturday 29 August 2026 19:00:58 -0400 (0:00:00.033) 0:00:07.639 ******* skipping: [managed-node3] => (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-node3] => (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-node3] => (item=CentOS_10.yml) => { "ansible_facts": { "__ssh_defaults": { "Include": "/etc/ssh/ssh_config.d/*.conf" }, "__ssh_drop_in_name": "00-ansible", "__ssh_supports_drop_in": true }, "ansible_included_var_files": [ "/tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/CentOS_10.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_10.yml" } ok: [managed-node3] => (item=CentOS_10.yml) => { "ansible_facts": { "__ssh_defaults": { "Include": "/etc/ssh/ssh_config.d/*.conf" }, "__ssh_drop_in_name": "00-ansible", "__ssh_supports_drop_in": true }, "ansible_included_var_files": [ "/tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/CentOS_10.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_10.yml" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Saturday 29 August 2026 19:00:58 -0400 (0:00:00.048) 0:00:07.687 ******* ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: openssh openssh-clients TASK [fedora.linux_system_roles.ssh : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Saturday 29 August 2026 19:00:59 -0400 (0:00:01.141) 0:00:08.828 ******* skipping: [managed-node3] => { "false_condition": "__ssh_is_transactional | d(false)" } TASK [fedora.linux_system_roles.ssh : Reboot transactional update systems] ***** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:22 Saturday 29 August 2026 19:00:59 -0400 (0:00:00.024) 0:00:08.852 ******* skipping: [managed-node3] => { "changed": false, "false_condition": "__ssh_is_transactional | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Fail if reboot is needed and not set] **** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:27 Saturday 29 August 2026 19:00:59 -0400 (0:00:00.019) 0:00:08.872 ******* skipping: [managed-node3] => { "changed": false, "false_condition": "__ssh_is_transactional | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Gather information about the user for user configuration] *** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:35 Saturday 29 August 2026 19:00:59 -0400 (0:00:00.012) 0:00:08.885 ******* skipping: [managed-node3] => { "changed": false, "false_condition": "ssh_user is not none", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions] *** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:42 Saturday 29 August 2026 19:00:59 -0400 (0:00:00.022) 0:00:08.907 ******* skipping: [managed-node3] => { "changed": false, "false_condition": "ssh_user is not none", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ssh : Generate the configuration file] ********* task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:53 Saturday 29 August 2026 19:00:59 -0400 (0:00:00.019) 0:00:08.927 ******* changed: [managed-node3] => { "changed": true, "checksum": "f7064ac5462aad2cda2efeaddcf48db84a38b68b", "dest": "/etc/ssh/ssh_config.d/00-ansible.conf", "gid": 0, "group": "root", "md5sum": "b9842f12c77db4e7cba397c9fdad4642", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 41, "src": "/root/.ansible/tmp/ansible-tmp-1788044459.803897-11764-4628633918412/.source.conf", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.ssh : Record role success fingerprint] ********* task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:69 Saturday 29 August 2026 19:01:00 -0400 (0:00:00.944) 0:00:09.871 ******* ok: [managed-node3] => { "changed": false, "fingerprint": { "ansible_check_mode": false, "ansible_version": "2.17.14", "date": "2026-08-29T19:01:01-04:00", "managed_node_distro": "CentOS-10", "play_hosts_number": 1, "role_name": "ssh", "role_path": "/tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh", "status": "success" } } TASK [Get fingerprint entries from journal] ************************************ task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:31 Saturday 29 August 2026 19:01:01 -0400 (0:00:00.388) 0:00:10.260 ******* ok: [managed-node3] => { "changed": false, "cmd": "set -eo pipefail; journalctl --since \"2026-08-29 19:00:56\" --no-pager | grep -v \" Invoked with\" | grep \"sr_fingerprint.*role_name=ssh\"", "delta": "0:00:00.008649", "end": "2026-08-29 19:01:01.428610", "rc": 0, "start": "2026-08-29 19:01:01.419961" } STDOUT: Aug 29 19:00:58 managed-node3 python3.12[14721]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-29T19:00:58-04:00 role_name=ssh role_path=/tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh status=begin ansible_version=2.17.14 managed_node_distro=CentOS-10 play_hosts_number=1 ansible_check_mode=False Aug 29 19:01:01 managed-node3 python3.12[15516]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-29T19:01:01-04:00 role_name=ssh role_path=/tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh status=success ansible_version=2.17.14 managed_node_distro=CentOS-10 play_hosts_number=1 ansible_check_mode=False TASK [Check that the log file was written] ************************************* task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:43 Saturday 29 August 2026 19:01:01 -0400 (0:00:00.396) 0:00:10.656 ******* ok: [managed-node3] => { "changed": false, "content": "eyJkYXRlIjoiMjAyNi0wOC0yOVQxOTowMDo1OC0wNDowMCIsInJvbGVfbmFtZSI6InNzaCIsInJvbGVfcGF0aCI6Ii90bXAvY29sbGVjdGlvbnMtNmg2L2Fuc2libGVfY29sbGVjdGlvbnMvZmVkb3JhL2xpbnV4X3N5c3RlbV9yb2xlcy9yb2xlcy9zc2giLCJzdGF0dXMiOiJiZWdpbiIsImFuc2libGVfdmVyc2lvbiI6IjIuMTcuMTQiLCJtYW5hZ2VkX25vZGVfZGlzdHJvIjoiQ2VudE9TLTEwIiwicGxheV9ob3N0c19udW1iZXIiOjEsImFuc2libGVfY2hlY2tfbW9kZSI6ZmFsc2V9CnsiZGF0ZSI6IjIwMjYtMDgtMjlUMTk6MDE6MDEtMDQ6MDAiLCJyb2xlX25hbWUiOiJzc2giLCJyb2xlX3BhdGgiOiIvdG1wL2NvbGxlY3Rpb25zLTZoNi9hbnNpYmxlX2NvbGxlY3Rpb25zL2ZlZG9yYS9saW51eF9zeXN0ZW1fcm9sZXMvcm9sZXMvc3NoIiwic3RhdHVzIjoic3VjY2VzcyIsImFuc2libGVfdmVyc2lvbiI6IjIuMTcuMTQiLCJtYW5hZ2VkX25vZGVfZGlzdHJvIjoiQ2VudE9TLTEwIiwicGxheV9ob3N0c19udW1iZXIiOjEsImFuc2libGVfY2hlY2tfbW9kZSI6ZmFsc2V9Cg==", "encoding": "base64", "source": "/var/log/sysroles.jsonl" } TASK [Print contents of logs] ************************************************** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:58 Saturday 29 August 2026 19:01:01 -0400 (0:00:00.474) 0:00:11.131 ******* ok: [managed-node3] => (item={"date":"2026-08-29T19:00:58-04:00","role_name":"ssh","role_path":"/tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh","status":"begin","ansible_version":"2.17.14","managed_node_distro":"CentOS-10","play_hosts_number":1,"ansible_check_mode":false} {"date":"2026-08-29T19:01:01-04:00","role_name":"ssh","role_path":"/tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh","status":"success","ansible_version":"2.17.14","managed_node_distro":"CentOS-10","play_hosts_number":1,"ansible_check_mode":false} ) => { "ansible_loop_var": "item", "item": "{\"date\":\"2026-08-29T19:00:58-04:00\",\"role_name\":\"ssh\",\"role_path\":\"/tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh\",\"status\":\"begin\",\"ansible_version\":\"2.17.14\",\"managed_node_distro\":\"CentOS-10\",\"play_hosts_number\":1,\"ansible_check_mode\":false}\n{\"date\":\"2026-08-29T19:01:01-04:00\",\"role_name\":\"ssh\",\"role_path\":\"/tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh\",\"status\":\"success\",\"ansible_version\":\"2.17.14\",\"managed_node_distro\":\"CentOS-10\",\"play_hosts_number\":1,\"ansible_check_mode\":false}\n" } ok: [managed-node3] => (item=['Aug 29 19:00:58 managed-node3 python3.12[14721]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-29T19:00:58-04:00 role_name=ssh role_path=/tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh status=begin ansible_version=2.17.14 managed_node_distro=CentOS-10 play_hosts_number=1 ansible_check_mode=False', 'Aug 29 19:01:01 managed-node3 python3.12[15516]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-29T19:01:01-04:00 role_name=ssh role_path=/tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh status=success ansible_version=2.17.14 managed_node_distro=CentOS-10 play_hosts_number=1 ansible_check_mode=False']) => { "ansible_loop_var": "item", "item": [ "Aug 29 19:00:58 managed-node3 python3.12[14721]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-29T19:00:58-04:00 role_name=ssh role_path=/tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh status=begin ansible_version=2.17.14 managed_node_distro=CentOS-10 play_hosts_number=1 ansible_check_mode=False", "Aug 29 19:01:01 managed-node3 python3.12[15516]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-29T19:01:01-04:00 role_name=ssh role_path=/tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh status=success ansible_version=2.17.14 managed_node_distro=CentOS-10 play_hosts_number=1 ansible_check_mode=False" ] } TASK [Assert content is correct] *********************************************** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:65 Saturday 29 August 2026 19:01:01 -0400 (0:00:00.041) 0:00:11.172 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed PLAY [Restore configuration files] ********************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:73 Saturday 29 August 2026 19:01:02 -0400 (0:00:00.067) 0:00:11.239 ******* ok: [managed-node3] TASK [Restore configuration files] ********************************************* task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:80 Saturday 29 August 2026 19:01:02 -0400 (0:00:00.899) 0:00:12.139 ******* included: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/restore.yml for managed-node3 TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/restore.yml:2 Saturday 29 August 2026 19:01:02 -0400 (0:00:00.019) 0:00:12.158 ******* ok: [managed-node3] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.3ksjekrb//etc/ssh_config.d/00-ansible.conf; then\n cp -a /tmp/ansible.3ksjekrb//etc/ssh_config.d/00-ansible.conf $(dirname /etc/ssh_config.d/00-ansible.conf)\nelif test -f /etc/ssh_config.d/00-ansible.conf; then\n rm /etc/ssh_config.d/00-ansible.conf\nfi\n", "delta": "0:00:00.003199", "end": "2026-08-29 19:01:03.279836", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2026-08-29 19:01:03.276637" } ok: [managed-node3] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.3ksjekrb//etc/ssh_config; then\n cp -a /tmp/ansible.3ksjekrb//etc/ssh_config $(dirname /etc/ssh_config)\nelif test -f /etc/ssh_config; then\n rm /etc/ssh_config\nfi\n", "delta": "0:00:00.003397", "end": "2026-08-29 19:01:03.624546", "item": "/etc/ssh_config", "rc": 0, "start": "2026-08-29 19:01:03.621149" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/restore.yml:15 Saturday 29 August 2026 19:01:03 -0400 (0:00:00.709) 0:00:12.867 ******* ok: [managed-node3] => { "changed": false, "path": "/tmp/ansible.3ksjekrb", "state": "absent" } PLAY RECAP ********************************************************************* managed-node3 : ok=32 changed=1 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 29 August 2026 19:01:04 -0400 (0:00:00.527) 0:00:13.395 ******* =============================================================================== Gathering Facts --------------------------------------------------------- 1.30s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:2 fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.14s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Make sure openssh is installed before creating backup ------------------- 1.04s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:19 fedora.linux_system_roles.ssh : Generate the configuration file --------- 0.94s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:53 Backup files ------------------------------------------------------------ 0.90s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:13 Gathering Facts --------------------------------------------------------- 0.90s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:73 Gathering Facts --------------------------------------------------------- 0.87s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:12 Restore backed up files and remove what was not present ----------------- 0.71s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/restore.yml:2 fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.62s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 fedora.linux_system_roles.ssh : Record role begin fingerprint ----------- 0.61s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Check if system is ostree ----------------------------------------------- 0.58s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:10 Remove temporary directory for backup files ----------------------------- 0.53s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/restore.yml:15 Create a temporary directory for backup files --------------------------- 0.49s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:5 Check that the log file was written ------------------------------------- 0.47s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:43 Get fingerprint entries from journal ------------------------------------ 0.40s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:31 fedora.linux_system_roles.ssh : Record role success fingerprint --------- 0.39s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:69 See if /dev/log exists for the fingerprint check ------------------------ 0.37s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:15 fedora.linux_system_roles.ssh : Check if transactional-update exists in /sbin --- 0.34s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:32 Run the role normally --------------------------------------------------- 0.17s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/run_role_with_clear_facts.yml:33 Assert content is correct ----------------------------------------------- 0.07s /tmp/collections-6h6/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:65