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-SbI 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 **************************************************** 3 plays in /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml PLAY [Backup configuration files] ********************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:2 Saturday 29 August 2026 19:02:02 -0400 (0:00:00.028) 0:00:00.028 ******* [WARNING]: Platform linux on host managed-node2 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-node2] TASK [Backup configuration files] ********************************************** task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:9 Saturday 29 August 2026 19:02:03 -0400 (0:00:01.234) 0:00:01.263 ******* included: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml for managed-node2 TASK [Setup] ******************************************************************* task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:2 Saturday 29 August 2026 19:02:03 -0400 (0:00:00.030) 0:00:01.294 ******* included: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml for managed-node2 TASK [Ensure facts used by test] *********************************************** task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:2 Saturday 29 August 2026 19:02:03 -0400 (0:00:00.017) 0:00:01.311 ******* skipping: [managed-node2] => { "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-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:10 Saturday 29 August 2026 19:02:03 -0400 (0:00:00.012) 0:00:01.324 ******* ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:15 Saturday 29 August 2026 19:02:03 -0400 (0:00:00.535) 0:00:01.859 ******* ok: [managed-node2] => { "ansible_facts": { "__ssh_is_ostree": false }, "changed": false } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:19 Saturday 29 August 2026 19:02:03 -0400 (0:00:00.030) 0:00:01.890 ******* ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: openssh-clients TASK [Define common variables] ************************************************* task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:31 Saturday 29 August 2026 19:02:05 -0400 (0:00:01.177) 0:00:03.067 ******* ok: [managed-node2] => { "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-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:37 Saturday 29 August 2026 19:02:05 -0400 (0:00:00.013) 0:00:03.081 ******* ok: [managed-node2] => { "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-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:5 Saturday 29 August 2026 19:02:05 -0400 (0:00:00.042) 0:00:03.123 ******* ok: [managed-node2] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.rjj8i_zy", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:13 Saturday 29 August 2026 19:02:05 -0400 (0:00:00.511) 0:00:03.635 ******* ok: [managed-node2] => (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.rjj8i_zy/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp -a /etc/ssh_config.d/00-ansible.conf /tmp/ansible.rjj8i_zy/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003546", "end": "2026-08-29 19:02:06.186261", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2026-08-29 19:02:06.182715" } ok: [managed-node2] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /etc/ssh_config; then\n mkdir -p /tmp/ansible.rjj8i_zy/$(dirname /etc/ssh_config);\n cp -a /etc/ssh_config /tmp/ansible.rjj8i_zy/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003550", "end": "2026-08-29 19:02:06.572121", "item": "/etc/ssh_config", "rc": 0, "start": "2026-08-29 19:02:06.568571" } PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:12 Saturday 29 August 2026 19:02:06 -0400 (0:00:00.987) 0:00:04.622 ******* ok: [managed-node2] TASK [See if /dev/log exists for the fingerprint check] ************************ task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:15 Saturday 29 August 2026 19:02:07 -0400 (0:00:00.789) 0:00:05.411 ******* ok: [managed-node2] => { "changed": false, "stat": { "atime": 1788044520.6250246, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1788044259.6679997, "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": 1788044254.329, "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-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:20 Saturday 29 August 2026 19:02:07 -0400 (0:00:00.419) 0:00:05.831 ******* ok: [managed-node2] => { "ansible_facts": { "__journal_start_time": "2026-08-29 19:02:07" }, "changed": false } TASK [Run role] **************************************************************** task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:25 Saturday 29 August 2026 19:02:07 -0400 (0:00:00.020) 0:00:05.851 ******* included: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/run_role_with_clear_facts.yml for managed-node2 TASK [Clear facts] ************************************************************* task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/run_role_with_clear_facts.yml:9 Saturday 29 August 2026 19:02:07 -0400 (0:00:00.026) 0:00:05.878 ******* META: facts cleared TASK [Run the role] ************************************************************ task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/run_role_with_clear_facts.yml:23 Saturday 29 August 2026 19:02:07 -0400 (0:00:00.001) 0:00:05.879 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "__sr_failed_when is defined", "skip_reason": "Conditional result was False" } TASK [Run the role normally] *************************************************** task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/run_role_with_clear_facts.yml:33 Saturday 29 August 2026 19:02:07 -0400 (0:00:00.040) 0:00:05.919 ******* included: fedora.linux_system_roles.ssh for managed-node2 TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Saturday 29 August 2026 19:02:08 -0400 (0:00:00.152) 0:00:06.071 ******* included: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml for managed-node2 TASK [fedora.linux_system_roles.ssh : Ensure ansible_facts used by role] ******* task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Saturday 29 August 2026 19:02:08 -0400 (0:00:00.032) 0:00:06.104 ******* ok: [managed-node2] TASK [fedora.linux_system_roles.ssh : Record role begin fingerprint] *********** task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Saturday 29 August 2026 19:02:08 -0400 (0:00:00.608) 0:00:06.712 ******* ok: [managed-node2] => { "changed": false, "fingerprint": { "ansible_check_mode": false, "ansible_version": "2.17.14", "date": "2026-08-29T19:02:09-04:00", "managed_node_distro": "CentOS-9", "play_hosts_number": 1, "role_name": "ssh", "role_path": "/tmp/collections-SbI/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-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:20 Saturday 29 August 2026 19:02:09 -0400 (0:00:00.521) 0:00:07.234 ******* skipping: [managed-node2] => { "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-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:25 Saturday 29 August 2026 19:02:09 -0400 (0:00:00.024) 0:00:07.259 ******* skipping: [managed-node2] => { "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-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:32 Saturday 29 August 2026 19:02:09 -0400 (0:00:00.032) 0:00:07.292 ******* ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.ssh : Set flag if transactional-update exists] *** task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:37 Saturday 29 August 2026 19:02:09 -0400 (0:00:00.397) 0:00:07.689 ******* ok: [managed-node2] => { "ansible_facts": { "__ssh_is_transactional": false }, "changed": false } TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:41 Saturday 29 August 2026 19:02:09 -0400 (0:00:00.022) 0:00:07.712 ******* skipping: [managed-node2] => (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-node2] => (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-node2] => (item=CentOS_9.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-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [managed-node2] => (item=CentOS_9.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-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [fedora.linux_system_roles.ssh : Ensure required packages are installed] *** task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Saturday 29 August 2026 19:02:09 -0400 (0:00:00.050) 0:00:07.762 ******* ok: [managed-node2] => { "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-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Saturday 29 August 2026 19:02:11 -0400 (0:00:01.346) 0:00:09.109 ******* skipping: [managed-node2] => { "false_condition": "__ssh_is_transactional | d(false)" } TASK [fedora.linux_system_roles.ssh : Reboot transactional update systems] ***** task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:22 Saturday 29 August 2026 19:02:11 -0400 (0:00:00.014) 0:00:09.124 ******* skipping: [managed-node2] => { "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-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:27 Saturday 29 August 2026 19:02:11 -0400 (0:00:00.013) 0:00:09.137 ******* skipping: [managed-node2] => { "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-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:35 Saturday 29 August 2026 19:02:11 -0400 (0:00:00.012) 0:00:09.149 ******* skipping: [managed-node2] => { "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-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:42 Saturday 29 August 2026 19:02:11 -0400 (0:00:00.015) 0:00:09.165 ******* skipping: [managed-node2] => { "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-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:53 Saturday 29 August 2026 19:02:11 -0400 (0:00:00.016) 0:00:09.181 ******* changed: [managed-node2] => { "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-1788044531.2491362-11883-34969401379385/.source.conf", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.ssh : Record role success fingerprint] ********* task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:69 Saturday 29 August 2026 19:02:12 -0400 (0:00:01.002) 0:00:10.184 ******* ok: [managed-node2] => { "changed": false, "fingerprint": { "ansible_check_mode": false, "ansible_version": "2.17.14", "date": "2026-08-29T19:02:12-04:00", "managed_node_distro": "CentOS-9", "play_hosts_number": 1, "role_name": "ssh", "role_path": "/tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh", "status": "success" } } TASK [Get fingerprint entries from journal] ************************************ task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:31 Saturday 29 August 2026 19:02:12 -0400 (0:00:00.379) 0:00:10.563 ******* ok: [managed-node2] => { "changed": false, "cmd": "set -eo pipefail; journalctl --since \"2026-08-29 19:02:07\" --no-pager | grep -v \" Invoked with\" | grep \"sr_fingerprint.*role_name=ssh\"", "delta": "0:00:00.010625", "end": "2026-08-29 19:02:12.907293", "rc": 0, "start": "2026-08-29 19:02:12.896668" } STDOUT: Aug 29 19:02:09 managed-node2 python3.9[15260]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-29T19:02:09-04:00 role_name=ssh role_path=/tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh status=begin ansible_version=2.17.14 managed_node_distro=CentOS-9 play_hosts_number=1 ansible_check_mode=False Aug 29 19:02:12 managed-node2 python3.9[16055]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-29T19:02:12-04:00 role_name=ssh role_path=/tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh 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-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:43 Saturday 29 August 2026 19:02:12 -0400 (0:00:00.389) 0:00:10.953 ******* ok: [managed-node2] => { "changed": false, "content": "eyJkYXRlIjoiMjAyNi0wOC0yOVQxOTowMjowOS0wNDowMCIsInJvbGVfbmFtZSI6InNzaCIsInJvbGVfcGF0aCI6Ii90bXAvY29sbGVjdGlvbnMtU2JJL2Fuc2libGVfY29sbGVjdGlvbnMvZmVkb3JhL2xpbnV4X3N5c3RlbV9yb2xlcy9yb2xlcy9zc2giLCJzdGF0dXMiOiJiZWdpbiIsImFuc2libGVfdmVyc2lvbiI6IjIuMTcuMTQiLCJtYW5hZ2VkX25vZGVfZGlzdHJvIjoiQ2VudE9TLTkiLCJwbGF5X2hvc3RzX251bWJlciI6MSwiYW5zaWJsZV9jaGVja19tb2RlIjpmYWxzZX0KeyJkYXRlIjoiMjAyNi0wOC0yOVQxOTowMjoxMi0wNDowMCIsInJvbGVfbmFtZSI6InNzaCIsInJvbGVfcGF0aCI6Ii90bXAvY29sbGVjdGlvbnMtU2JJL2Fuc2libGVfY29sbGVjdGlvbnMvZmVkb3JhL2xpbnV4X3N5c3RlbV9yb2xlcy9yb2xlcy9zc2giLCJzdGF0dXMiOiJzdWNjZXNzIiwiYW5zaWJsZV92ZXJzaW9uIjoiMi4xNy4xNCIsIm1hbmFnZWRfbm9kZV9kaXN0cm8iOiJDZW50T1MtOSIsInBsYXlfaG9zdHNfbnVtYmVyIjoxLCJhbnNpYmxlX2NoZWNrX21vZGUiOmZhbHNlfQo=", "encoding": "base64", "source": "/var/log/sysroles.jsonl" } TASK [Print contents of logs] ************************************************** task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:58 Saturday 29 August 2026 19:02:13 -0400 (0:00:00.460) 0:00:11.413 ******* ok: [managed-node2] => (item={"date":"2026-08-29T19:02:09-04:00","role_name":"ssh","role_path":"/tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh","status":"begin","ansible_version":"2.17.14","managed_node_distro":"CentOS-9","play_hosts_number":1,"ansible_check_mode":false} {"date":"2026-08-29T19:02:12-04:00","role_name":"ssh","role_path":"/tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh","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-29T19:02:09-04:00\",\"role_name\":\"ssh\",\"role_path\":\"/tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh\",\"status\":\"begin\",\"ansible_version\":\"2.17.14\",\"managed_node_distro\":\"CentOS-9\",\"play_hosts_number\":1,\"ansible_check_mode\":false}\n{\"date\":\"2026-08-29T19:02:12-04:00\",\"role_name\":\"ssh\",\"role_path\":\"/tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh\",\"status\":\"success\",\"ansible_version\":\"2.17.14\",\"managed_node_distro\":\"CentOS-9\",\"play_hosts_number\":1,\"ansible_check_mode\":false}\n" } ok: [managed-node2] => (item=['Aug 29 19:02:09 managed-node2 python3.9[15260]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-29T19:02:09-04:00 role_name=ssh role_path=/tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh status=begin ansible_version=2.17.14 managed_node_distro=CentOS-9 play_hosts_number=1 ansible_check_mode=False', 'Aug 29 19:02:12 managed-node2 python3.9[16055]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-29T19:02:12-04:00 role_name=ssh role_path=/tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh 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 29 19:02:09 managed-node2 python3.9[15260]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-29T19:02:09-04:00 role_name=ssh role_path=/tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh status=begin ansible_version=2.17.14 managed_node_distro=CentOS-9 play_hosts_number=1 ansible_check_mode=False", "Aug 29 19:02:12 managed-node2 python3.9[16055]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-29T19:02:12-04:00 role_name=ssh role_path=/tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh 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-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:65 Saturday 29 August 2026 19:02:13 -0400 (0:00:00.042) 0:00:11.456 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed PLAY [Restore configuration files] ********************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:73 Saturday 29 August 2026 19:02:13 -0400 (0:00:00.041) 0:00:11.497 ******* ok: [managed-node2] TASK [Restore configuration files] ********************************************* task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:80 Saturday 29 August 2026 19:02:14 -0400 (0:00:00.778) 0:00:12.276 ******* included: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/restore.yml for managed-node2 TASK [Restore backed up files and remove what was not present] ***************** task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/restore.yml:2 Saturday 29 August 2026 19:02:14 -0400 (0:00:00.026) 0:00:12.302 ******* ok: [managed-node2] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.rjj8i_zy//etc/ssh_config.d/00-ansible.conf; then\n cp -a /tmp/ansible.rjj8i_zy//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.003804", "end": "2026-08-29 19:02:14.680276", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2026-08-29 19:02:14.676472" } ok: [managed-node2] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.rjj8i_zy//etc/ssh_config; then\n cp -a /tmp/ansible.rjj8i_zy//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.003652", "end": "2026-08-29 19:02:15.059169", "item": "/etc/ssh_config", "rc": 0, "start": "2026-08-29 19:02:15.055517" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/restore.yml:15 Saturday 29 August 2026 19:02:15 -0400 (0:00:00.803) 0:00:13.106 ******* ok: [managed-node2] => { "changed": false, "path": "/tmp/ansible.rjj8i_zy", "state": "absent" } PLAY RECAP ********************************************************************* managed-node2 : 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:02:15 -0400 (0:00:00.616) 0:00:13.722 ******* =============================================================================== fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.35s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 1.23s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:2 Make sure openssh is installed before creating backup ------------------- 1.18s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:19 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.00s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:53 Backup files ------------------------------------------------------------ 0.99s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:13 Restore backed up files and remove what was not present ----------------- 0.80s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/restore.yml:2 Gathering Facts --------------------------------------------------------- 0.79s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:12 Gathering Facts --------------------------------------------------------- 0.78s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:73 Remove temporary directory for backup files ----------------------------- 0.62s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/restore.yml:15 fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.61s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Check if system is ostree ----------------------------------------------- 0.54s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:10 fedora.linux_system_roles.ssh : Record role begin fingerprint ----------- 0.52s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Create a temporary directory for backup files --------------------------- 0.51s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:5 Check that the log file was written ------------------------------------- 0.46s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:43 See if /dev/log exists for the fingerprint check ------------------------ 0.42s /tmp/collections-SbI/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.40s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:32 Get fingerprint entries from journal ------------------------------------ 0.39s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:31 fedora.linux_system_roles.ssh : Record role success fingerprint --------- 0.38s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:69 Run the role normally --------------------------------------------------- 0.15s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/run_role_with_clear_facts.yml:33 fedora.linux_system_roles.ssh : Set platform/version specific variables --- 0.05s /tmp/collections-SbI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:41