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-kxI 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-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml PLAY [Backup configuration files] ********************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:2 Saturday 08 August 2026 17:26:16 -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.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-node3] TASK [Backup configuration files] ********************************************** task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:9 Saturday 08 August 2026 17:26:17 -0400 (0:00:01.171) 0:00:01.189 ******* included: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml for managed-node3 TASK [Setup] ******************************************************************* task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:2 Saturday 08 August 2026 17:26:17 -0400 (0:00:00.047) 0:00:01.236 ******* included: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml for managed-node3 TASK [Ensure facts used by test] *********************************************** task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:2 Saturday 08 August 2026 17:26:17 -0400 (0:00:00.028) 0:00:01.265 ******* 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-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:10 Saturday 08 August 2026 17:26:17 -0400 (0:00:00.015) 0:00:01.280 ******* ok: [managed-node3] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:15 Saturday 08 August 2026 17:26:18 -0400 (0:00:00.481) 0:00:01.761 ******* ok: [managed-node3] => { "ansible_facts": { "__ssh_is_ostree": false }, "changed": false } TASK [Make sure openssh is installed before creating backup] ******************* task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:19 Saturday 08 August 2026 17:26:18 -0400 (0:00:00.022) 0:00:01.784 ******* ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: openssh-clients TASK [Define common variables] ************************************************* task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:31 Saturday 08 August 2026 17:26:19 -0400 (0:00:01.214) 0:00:02.998 ******* 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-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:37 Saturday 08 August 2026 17:26:19 -0400 (0:00:00.017) 0:00:03.015 ******* 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-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:5 Saturday 08 August 2026 17:26:19 -0400 (0:00:00.044) 0:00:03.060 ******* ok: [managed-node3] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.w6ydzmyc", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Backup files] ************************************************************ task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:13 Saturday 08 August 2026 17:26:20 -0400 (0:00:00.515) 0:00:03.576 ******* 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.w6ydzmyc/$(dirname /etc/ssh_config.d/00-ansible.conf);\n cp -a /etc/ssh_config.d/00-ansible.conf /tmp/ansible.w6ydzmyc/$(dirname /etc/ssh_config.d/00-ansible.conf)\nfi\n", "delta": "0:00:00.003588", "end": "2026-08-08 17:26:20.700457", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2026-08-08 17:26:20.696869" } 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.w6ydzmyc/$(dirname /etc/ssh_config);\n cp -a /etc/ssh_config /tmp/ansible.w6ydzmyc/$(dirname /etc/ssh_config)\nfi\n", "delta": "0:00:00.003733", "end": "2026-08-08 17:26:21.105008", "item": "/etc/ssh_config", "rc": 0, "start": "2026-08-08 17:26:21.101275" } PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:12 Saturday 08 August 2026 17:26:21 -0400 (0:00:01.137) 0:00:04.713 ******* ok: [managed-node3] TASK [See if /dev/log exists for the fingerprint check] ************************ task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:15 Saturday 08 August 2026 17:26:21 -0400 (0:00:00.756) 0:00:05.470 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1786224375.33317, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1786224190.09, "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": 1786224184.351, "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-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:20 Saturday 08 August 2026 17:26:22 -0400 (0:00:00.395) 0:00:05.866 ******* ok: [managed-node3] => { "ansible_facts": { "__journal_start_time": "2026-08-08 17:26:21" }, "changed": false } TASK [Run role] **************************************************************** task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:25 Saturday 08 August 2026 17:26:22 -0400 (0:00:00.034) 0:00:05.901 ******* included: /tmp/collections-kxI/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-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/run_role_with_clear_facts.yml:9 Saturday 08 August 2026 17:26:22 -0400 (0:00:00.038) 0:00:05.940 ******* META: facts cleared TASK [Run the role] ************************************************************ task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/run_role_with_clear_facts.yml:23 Saturday 08 August 2026 17:26:22 -0400 (0:00:00.003) 0:00:05.943 ******* 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-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/run_role_with_clear_facts.yml:33 Saturday 08 August 2026 17:26:22 -0400 (0:00:00.045) 0:00:05.989 ******* included: fedora.linux_system_roles.ssh for managed-node3 TASK [fedora.linux_system_roles.ssh : Set platform/version specific variables] *** task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:2 Saturday 08 August 2026 17:26:22 -0400 (0:00:00.111) 0:00:06.101 ******* included: /tmp/collections-kxI/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-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Saturday 08 August 2026 17:26:22 -0400 (0:00:00.028) 0:00:06.129 ******* ok: [managed-node3] TASK [fedora.linux_system_roles.ssh : Record role begin fingerprint] *********** task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 Saturday 08 August 2026 17:26:23 -0400 (0:00:00.625) 0:00:06.755 ******* ok: [managed-node3] => { "changed": false, "fingerprint": { "ansible_check_mode": false, "ansible_version": "2.17.14", "date": "2026-08-08T17:26:23-04:00", "managed_node_distro": "CentOS-9", "play_hosts_number": 1, "role_name": "ssh", "role_path": "/tmp/collections-kxI/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-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:20 Saturday 08 August 2026 17:26:23 -0400 (0:00:00.453) 0:00:07.208 ******* 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-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:25 Saturday 08 August 2026 17:26:23 -0400 (0:00:00.020) 0:00:07.229 ******* 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-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:32 Saturday 08 August 2026 17:26:23 -0400 (0:00:00.022) 0:00:07.251 ******* ok: [managed-node3] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.ssh : Set flag if transactional-update exists] *** task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:37 Saturday 08 August 2026 17:26:24 -0400 (0:00:00.394) 0:00:07.645 ******* 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-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:41 Saturday 08 August 2026 17:26:24 -0400 (0:00:00.030) 0:00:07.676 ******* 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_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-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [managed-node3] => (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-kxI/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-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Saturday 08 August 2026 17:26:24 -0400 (0:00:00.053) 0:00:07.730 ******* 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-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:17 Saturday 08 August 2026 17:26:25 -0400 (0:00:01.302) 0:00:09.032 ******* skipping: [managed-node3] => { "false_condition": "__ssh_is_transactional | d(false)" } TASK [fedora.linux_system_roles.ssh : Reboot transactional update systems] ***** task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:22 Saturday 08 August 2026 17:26:25 -0400 (0:00:00.037) 0:00:09.069 ******* 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-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:27 Saturday 08 August 2026 17:26:25 -0400 (0:00:00.033) 0:00:09.102 ******* 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-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:35 Saturday 08 August 2026 17:26:25 -0400 (0:00:00.035) 0:00:09.138 ******* 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-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:42 Saturday 08 August 2026 17:26:25 -0400 (0:00:00.035) 0:00:09.173 ******* 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-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:53 Saturday 08 August 2026 17:26:25 -0400 (0:00:00.025) 0:00:09.198 ******* 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-1786224385.7289915-11718-77187080391079/.source.conf", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.ssh : Record role success fingerprint] ********* task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:69 Saturday 08 August 2026 17:26:26 -0400 (0:00:01.035) 0:00:10.234 ******* ok: [managed-node3] => { "changed": false, "fingerprint": { "ansible_check_mode": false, "ansible_version": "2.17.14", "date": "2026-08-08T17:26:27-04:00", "managed_node_distro": "CentOS-9", "play_hosts_number": 1, "role_name": "ssh", "role_path": "/tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh", "status": "success" } } TASK [Get fingerprint entries from journal] ************************************ task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:31 Saturday 08 August 2026 17:26:27 -0400 (0:00:00.368) 0:00:10.602 ******* ok: [managed-node3] => { "changed": false, "cmd": "set -eo pipefail; journalctl --since \"2026-08-08 17:26:21\" --no-pager | grep -v \" Invoked with\" | grep \"sr_fingerprint.*role_name=ssh\"", "delta": "0:00:00.010717", "end": "2026-08-08 17:26:27.371120", "rc": 0, "start": "2026-08-08 17:26:27.360403" } STDOUT: Aug 08 17:26:23 managed-node3 python3.9[14512]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-08T17:26:23-04:00 role_name=ssh role_path=/tmp/collections-kxI/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 08 17:26:27 managed-node3 python3.9[15307]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-08T17:26:27-04:00 role_name=ssh role_path=/tmp/collections-kxI/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-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:43 Saturday 08 August 2026 17:26:27 -0400 (0:00:00.369) 0:00:10.972 ******* ok: [managed-node3] => { "changed": false, "content": "eyJkYXRlIjoiMjAyNi0wOC0wOFQxNzoyNjoyMy0wNDowMCIsInJvbGVfbmFtZSI6InNzaCIsInJvbGVfcGF0aCI6Ii90bXAvY29sbGVjdGlvbnMta3hJL2Fuc2libGVfY29sbGVjdGlvbnMvZmVkb3JhL2xpbnV4X3N5c3RlbV9yb2xlcy9yb2xlcy9zc2giLCJzdGF0dXMiOiJiZWdpbiIsImFuc2libGVfdmVyc2lvbiI6IjIuMTcuMTQiLCJtYW5hZ2VkX25vZGVfZGlzdHJvIjoiQ2VudE9TLTkiLCJwbGF5X2hvc3RzX251bWJlciI6MSwiYW5zaWJsZV9jaGVja19tb2RlIjpmYWxzZX0KeyJkYXRlIjoiMjAyNi0wOC0wOFQxNzoyNjoyNy0wNDowMCIsInJvbGVfbmFtZSI6InNzaCIsInJvbGVfcGF0aCI6Ii90bXAvY29sbGVjdGlvbnMta3hJL2Fuc2libGVfY29sbGVjdGlvbnMvZmVkb3JhL2xpbnV4X3N5c3RlbV9yb2xlcy9yb2xlcy9zc2giLCJzdGF0dXMiOiJzdWNjZXNzIiwiYW5zaWJsZV92ZXJzaW9uIjoiMi4xNy4xNCIsIm1hbmFnZWRfbm9kZV9kaXN0cm8iOiJDZW50T1MtOSIsInBsYXlfaG9zdHNfbnVtYmVyIjoxLCJhbnNpYmxlX2NoZWNrX21vZGUiOmZhbHNlfQo=", "encoding": "base64", "source": "/var/log/sysroles.jsonl" } TASK [Print contents of logs] ************************************************** task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:58 Saturday 08 August 2026 17:26:27 -0400 (0:00:00.534) 0:00:11.506 ******* ok: [managed-node3] => (item={"date":"2026-08-08T17:26:23-04:00","role_name":"ssh","role_path":"/tmp/collections-kxI/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-08T17:26:27-04:00","role_name":"ssh","role_path":"/tmp/collections-kxI/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-08T17:26:23-04:00\",\"role_name\":\"ssh\",\"role_path\":\"/tmp/collections-kxI/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-08T17:26:27-04:00\",\"role_name\":\"ssh\",\"role_path\":\"/tmp/collections-kxI/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-node3] => (item=['Aug 08 17:26:23 managed-node3 python3.9[14512]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-08T17:26:23-04:00 role_name=ssh role_path=/tmp/collections-kxI/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 08 17:26:27 managed-node3 python3.9[15307]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-08T17:26:27-04:00 role_name=ssh role_path=/tmp/collections-kxI/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 08 17:26:23 managed-node3 python3.9[14512]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-08T17:26:23-04:00 role_name=ssh role_path=/tmp/collections-kxI/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 08 17:26:27 managed-node3 python3.9[15307]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-08T17:26:27-04:00 role_name=ssh role_path=/tmp/collections-kxI/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-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:65 Saturday 08 August 2026 17:26:28 -0400 (0:00:00.051) 0:00:11.558 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed PLAY [Restore configuration files] ********************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:73 Saturday 08 August 2026 17:26:28 -0400 (0:00:00.066) 0:00:11.624 ******* ok: [managed-node3] TASK [Restore configuration files] ********************************************* task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:80 Saturday 08 August 2026 17:26:28 -0400 (0:00:00.762) 0:00:12.387 ******* included: /tmp/collections-kxI/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-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/restore.yml:2 Saturday 08 August 2026 17:26:28 -0400 (0:00:00.024) 0:00:12.412 ******* ok: [managed-node3] => (item=/etc/ssh_config.d/00-ansible.conf) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.w6ydzmyc//etc/ssh_config.d/00-ansible.conf; then\n cp -a /tmp/ansible.w6ydzmyc//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.003561", "end": "2026-08-08 17:26:29.182399", "item": "/etc/ssh_config.d/00-ansible.conf", "rc": 0, "start": "2026-08-08 17:26:29.178838" } ok: [managed-node3] => (item=/etc/ssh_config) => { "ansible_loop_var": "item", "changed": false, "cmd": "if test -f /tmp/ansible.w6ydzmyc//etc/ssh_config; then\n cp -a /tmp/ansible.w6ydzmyc//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.003579", "end": "2026-08-08 17:26:29.543346", "item": "/etc/ssh_config", "rc": 0, "start": "2026-08-08 17:26:29.539767" } TASK [Remove temporary directory for backup files] ***************************** task path: /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/restore.yml:15 Saturday 08 August 2026 17:26:29 -0400 (0:00:00.742) 0:00:13.154 ******* ok: [managed-node3] => { "changed": false, "path": "/tmp/ansible.w6ydzmyc", "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 08 August 2026 17:26:30 -0400 (0:00:00.566) 0:00:13.720 ******* =============================================================================== fedora.linux_system_roles.ssh : Ensure required packages are installed --- 1.30s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:5 Make sure openssh is installed before creating backup ------------------- 1.21s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:19 Gathering Facts --------------------------------------------------------- 1.17s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:2 Backup files ------------------------------------------------------------ 1.14s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:13 fedora.linux_system_roles.ssh : Generate the configuration file --------- 1.04s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:53 Gathering Facts --------------------------------------------------------- 0.76s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:73 Gathering Facts --------------------------------------------------------- 0.76s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:12 Restore backed up files and remove what was not present ----------------- 0.74s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/restore.yml:2 fedora.linux_system_roles.ssh : Ensure ansible_facts used by role ------- 0.63s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:2 Remove temporary directory for backup files ----------------------------- 0.57s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/restore.yml:15 Check that the log file was written ------------------------------------- 0.53s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:43 Create a temporary directory for backup files --------------------------- 0.52s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/backup.yml:5 Check if system is ostree ----------------------------------------------- 0.48s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/setup.yml:10 fedora.linux_system_roles.ssh : Record role begin fingerprint ----------- 0.45s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:7 See if /dev/log exists for the fingerprint check ------------------------ 0.40s /tmp/collections-kxI/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.39s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/set_vars.yml:32 Get fingerprint entries from journal ------------------------------------ 0.37s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:31 fedora.linux_system_roles.ssh : Record role success fingerprint --------- 0.37s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/roles/ssh/tasks/main.yml:69 Run the role normally --------------------------------------------------- 0.11s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tasks/run_role_with_clear_facts.yml:33 Assert content is correct ----------------------------------------------- 0.07s /tmp/collections-kxI/ansible_collections/fedora/linux_system_roles/tests/ssh/tests_default.yml:65