Reboot working but not identified by Ansible

cndpansible
Mon, 16 Mar 2026 10:07:31 +0000
Get Help

As a final step of a playbook, I’m trying to reboot a bunch of computers.

---
- name: clients-off
  hosts: DEPAN
  tasks:
    - name: Block for reboot
      tags: reboot
      block:
        - name: Reboot
          ansible.builtin.reboot:
            connect_timeout: 10
            reboot_timeout: 150

All computers reboot fine, but Ansible never seem to get its result back (running it with -vv)

TASK [Reboot]
************************************************
task path: /root/ansible/deploy.yml:134

Ansible has been like this for more than an hour

Can you please help me understand what is wrong with my reboot command and the way I should collect feedback about reboot success?

Thank you!

PS: I re-ran the playbook with -vvvvon an inventory of 2 PCs, 192.168.64.162 and 192.168.64.163 , nothing displayed on the screen for 20 minutes.

TASK [Reboot] ******************************************************************************************************************************************************************************************************************************************************************
task path: /root/ansible/reboot.yml:8
<192.168.64.162> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.162> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/5a4d730b2d"' -o NumberOfPasswordPrompts=1 192.168.64.162 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<192.168.64.163> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.163> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/f56bfdc939"' -o NumberOfPasswordPrompts=1 192.168.64.163 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<192.168.64.162> (0, b'/root\n', b'')
<192.168.64.162> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.162> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/5a4d730b2d"' -o NumberOfPasswordPrompts=1 192.168.64.162 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1773655717.9367526-24961-135382348300122 `" && echo ansible-tmp-1773655717.9367526-24961-135382348300122="` echo /root/.ansible/tmp/ansible-tmp-1773655717.9367526-24961-135382348300122 `" ) && sleep 0'"'"''
<192.168.64.163> (0, b'/root\n', b'')
<192.168.64.163> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.163> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/f56bfdc939"' -o NumberOfPasswordPrompts=1 192.168.64.163 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1773655717.9530857-24962-147052684178059 `" && echo ansible-tmp-1773655717.9530857-24962-147052684178059="` echo /root/.ansible/tmp/ansible-tmp-1773655717.9530857-24962-147052684178059 `" ) && sleep 0'"'"''
<192.168.64.162> (0, b'ansible-tmp-1773655717.9367526-24961-135382348300122=/root/.ansible/tmp/ansible-tmp-1773655717.9367526-24961-135382348300122\n', b'')
<192.168.64.163> (0, b'ansible-tmp-1773655717.9530857-24962-147052684178059=/root/.ansible/tmp/ansible-tmp-1773655717.9530857-24962-147052684178059\n', b'')
Using module file /usr/lib/python3/dist-packages/ansible/modules/setup.py
<192.168.64.162> PUT /root/.ansible/tmp/ansible-local-24934y68ya6i2/tmp64cq400m TO /root/.ansible/tmp/ansible-tmp-1773655717.9367526-24961-135382348300122/AnsiballZ_setup.py
<192.168.64.162> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/5a4d730b2d"' -o NumberOfPasswordPrompts=1 '[192.168.64.162]'
Using module file /usr/lib/python3/dist-packages/ansible/modules/setup.py
<192.168.64.163> PUT /root/.ansible/tmp/ansible-local-24934y68ya6i2/tmprb1mmtsw TO /root/.ansible/tmp/ansible-tmp-1773655717.9530857-24962-147052684178059/AnsiballZ_setup.py
<192.168.64.163> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/f56bfdc939"' -o NumberOfPasswordPrompts=1 '[192.168.64.163]'
<192.168.64.163> (0, b'sftp> put /root/.ansible/tmp/ansible-local-24934y68ya6i2/tmprb1mmtsw /root/.ansible/tmp/ansible-tmp-1773655717.9530857-24962-147052684178059/AnsiballZ_setup.py\n', b'')
<192.168.64.163> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.163> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/f56bfdc939"' -o NumberOfPasswordPrompts=1 192.168.64.163 '/bin/sh -c '"'"'chmod u+rwx /root/.ansible/tmp/ansible-tmp-1773655717.9530857-24962-147052684178059/ /root/.ansible/tmp/ansible-tmp-1773655717.9530857-24962-147052684178059/AnsiballZ_setup.py && sleep 0'"'"''
<192.168.64.162> (0, b'sftp> put /root/.ansible/tmp/ansible-local-24934y68ya6i2/tmp64cq400m /root/.ansible/tmp/ansible-tmp-1773655717.9367526-24961-135382348300122/AnsiballZ_setup.py\n', b'')
<192.168.64.162> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.162> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/5a4d730b2d"' -o NumberOfPasswordPrompts=1 192.168.64.162 '/bin/sh -c '"'"'chmod u+rwx /root/.ansible/tmp/ansible-tmp-1773655717.9367526-24961-135382348300122/ /root/.ansible/tmp/ansible-tmp-1773655717.9367526-24961-135382348300122/AnsiballZ_setup.py && sleep 0'"'"''
<192.168.64.163> (0, b'', b'')
<192.168.64.163> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.163> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/f56bfdc939"' -o NumberOfPasswordPrompts=1 -tt 192.168.64.163 '/bin/sh -c '"'"'/usr/bin/python3.13 /root/.ansible/tmp/ansible-tmp-1773655717.9530857-24962-147052684178059/AnsiballZ_setup.py && sleep 0'"'"''
<192.168.64.162> (0, b'', b'')
<192.168.64.162> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.162> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/5a4d730b2d"' -o NumberOfPasswordPrompts=1 -tt 192.168.64.162 '/bin/sh -c '"'"'/usr/bin/python3.13 /root/.ansible/tmp/ansible-tmp-1773655717.9367526-24961-135382348300122/AnsiballZ_setup.py && sleep 0'"'"''
<192.168.64.163> (0, b'\r\n{"ansible_facts": {"ansible_fips": false, "ansible_selinux_python_present": true, "ansible_selinux": {"status": "disabled"}, "ansible_python": {"version": {"major": 3, "minor": 13, "micro": 5, "releaselevel": "final", "serial": 0}, "version_info": [3, 13, 5, "final", 0], "executable": "/usr/bin/python3.13", "has_sslcontext": true, "type": "cpython"}, "ansible_lsb": {"id": "Debian", "description": "Debian GNU/Linux 13 (trixie)", "release": "13", "codename": "trixie", "major_release": "13"}, "ansible_date_time": {"year": "2026", "month": "03", "weekday": "lundi", "weekday_number": "1", "weeknumber": "11", "day": "16", "hour": "11", "minute": "08", "second": "38", "epoch": "1773655718", "epoch_int": "1773655718", "date": "2026-03-16", "time": "11:08:38", "iso8601_micro": "2026-03-16T10:08:38.282742Z", "iso8601": "2026-03-16T10:08:38Z", "iso8601_basic": "20260316T110838282742", "iso8601_basic_short": "20260316T110838", "tz": "CET", "tz_dst": "CEST", "tz_offset": "+0100"}, "ansible_system_capabilities_enforced": "False", "ansible_system_capabilities": [], "ansible_dns": {"search": ["cndp-erpent.be"], "nameservers": ["1.1.1.3", "1.0.0.3"]}, "ansible_env": {"LANGUAGE": "fr_BE:fr", "USER": "root", "SSH_CLIENT": "192.168.64.1 46396 22", "XDG_SESSION_TYPE": "tty", "SHLVL": "0", "MOTD_SHOWN": "pam", "HOME": "/root", "SSH_TTY": "/dev/pts/0", "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "COLORTERM": "truecolor", "LOGNAME": "root", "_": "/bin/sh", "XDG_SESSION_CLASS": "user", "TERM": "xterm-256color", "XDG_SESSION_ID": "3", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "XDG_RUNTIME_DIR": "/run/user/0", "LANG": "fr_BE.UTF-8", "SHELL": "/bin/bash", "PWD": "/root", "SSH_CONNECTION": "192.168.64.1 46396 192.168.64.163 22"}, "ansible_system": "Linux", "ansible_kernel": "6.12.74+deb13+1-amd64", "ansible_kernel_version": "#1 SMP PREEMPT_DYNAMIC Debian 6.12.74-2 (2026-03-08)", "ansible_machine": "x86_64", "ansible_python_version": "3.13.5", "ansible_fqdn": "spb2023-108041", "ansible_hostname": "spb2023-108041", "ansible_nodename": "spb2023-108041", "ansible_domain": "", "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_userspace_architecture": "x86_64", "ansible_machine_id": "b62bfd76dec8438aa1c4666904bb621c", "ansible_apparmor": {"status": "enabled"}, "ansible_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-6.12.74+deb13+1-amd64", "root": "UUID=d1d029c1-ed30-4b86-a4f9-eb6400217675", "ro": true, "quiet": true}, "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-6.12.74+deb13+1-amd64", "root": "UUID=d1d029c1-ed30-4b86-a4f9-eb6400217675", "ro": true, "quiet": true}, "ansible_local": {}, "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDP8p64krOUJks0Xu8CxMJhW9BdmJ0ftg1BeAK2voM0fpR0PtETHIcrWq/yJUDSaC34Yu8vAeypxovNEqF1MYcFAHTvysNfRYF7V2kCVBGjohCl2gSTXOeiOUsYCw06jyeQmyB51pDUD22xCVVQHreTH0b2gl3g29h9Z3PsaseYodmZQymJf1Ed6mP3Dqufd8xSgQQFtFC5RCJfyxkTkObZoMdooRt8EAVciBarNo3ffp+I7ApLEel4nok8cnGkHItaPbZyJvzsbeJKCWT0HDg973Y1gn4juYSstmzZ4wtFIaKkQvcvsYJ4YDqghYXAjWQIMRj9BnrfZieTqDmdZxcf5XlIgV028m9c4OTyJKbgySPLXfQ6AU97zYNK3ulUO8dpzEIH1Kj6rMfxN5kVZDHg5fK4hRMthU7rXrzzurrrShUSrnendWgnvyHqrHY1LSnYQRs5qF3CInFmUjPVqboc2GM4HN2cSYlvcxGgzAMaYNwM7r2ojqUMSNraL/flHek=", "ansible_ssh_host_key_rsa_public_keytype": "ssh-rsa", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHhyDc2TIRTJWW1eFU+WsDS5mV36fwvFaVmxec2iXQDjlovcDUbETPXx5FpO4/V9j2UsdTENZzUF9/bH859/Hdk=", "ansible_ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIDo+Lc6EKsCHqEe+/tSTtHGCxZXJeorfGTbXy29w8NSa", "ansible_ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ansible_distribution": "Debian", "ansible_distribution_release": "trixie", "ansible_distribution_version": "13.4", "ansible_distribution_major_version": "13", "ansible_distribution_file_path": "/etc/os-release", "ansible_distribution_file_variety": "Debian", "ansible_distribution_file_parsed": true, "ansible_distribution_minor_version": "4", "ansible_os_family": "Debian", "ansible_user_id": "root", "ansible_user_uid": 0, "ansible_user_gid": 0, "ansible_user_gecos": "root", "ansible_user_dir": "/root", "ansible_user_shell": "/bin/bash", "ansible_real_user_id": 0, "ansible_effective_user_id": 0, "ansible_real_group_id": 0, "ansible_effective_group_id": 0, "ansible_pkg_mgr": "apt", "ansible_service_mgr": "systemd", "gather_subset": ["min"], "module_setup": true}, "invocation": {"module_args": {"gather_subset": ["min"], "gather_timeout": 10, "filter": [], "fact_path": "/etc/ansible/facts.d"}}}\r\n', b'Shared connection to 192.168.64.163 closed.\r\n')
<192.168.64.163> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.163> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/f56bfdc939"' -o NumberOfPasswordPrompts=1 -tt 192.168.64.163 '/bin/sh -c '"'"'cat /proc/sys/kernel/random/boot_id && sleep 0'"'"''
<192.168.64.163> (0, b'0417d76d-142d-4216-9966-7ed7c992ccec\r\n', b'Shared connection to 192.168.64.163 closed.\r\n')
<192.168.64.162> (0, b'\r\n{"ansible_facts": {"ansible_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-6.12.74+deb13+1-amd64", "root": "UUID=739ee1c1-0098-4464-86d5-322f40c4fa0a", "ro": true, "quiet": true}, "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-6.12.74+deb13+1-amd64", "root": "UUID=739ee1c1-0098-4464-86d5-322f40c4fa0a", "ro": true, "quiet": true}, "ansible_fips": false, "ansible_system": "Linux", "ansible_kernel": "6.12.74+deb13+1-amd64", "ansible_kernel_version": "#1 SMP PREEMPT_DYNAMIC Debian 6.12.74-2 (2026-03-08)", "ansible_machine": "x86_64", "ansible_python_version": "3.13.5", "ansible_fqdn": "spb2023-108035", "ansible_hostname": "spb2023-108035", "ansible_nodename": "spb2023-108035", "ansible_domain": "", "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_userspace_architecture": "x86_64", "ansible_machine_id": "acc9b55810924c739fa1e883b5ca49b0", "ansible_date_time": {"year": "2026", "month": "03", "weekday": "lundi", "weekday_number": "1", "weeknumber": "11", "day": "16", "hour": "11", "minute": "08", "second": "38", "epoch": "1773655718", "epoch_int": "1773655718", "date": "2026-03-16", "time": "11:08:38", "iso8601_micro": "2026-03-16T10:08:38.596819Z", "iso8601": "2026-03-16T10:08:38Z", "iso8601_basic": "20260316T110838596819", "iso8601_basic_short": "20260316T110838", "tz": "CET", "tz_dst": "CEST", "tz_offset": "+0100"}, "ansible_lsb": {"id": "Debian", "description": "Debian GNU/Linux 13 (trixie)", "release": "13", "codename": "trixie", "major_release": "13"}, "ansible_env": {"LANGUAGE": "fr_BE:fr", "USER": "root", "SSH_CLIENT": "192.168.64.1 32844 22", "XDG_SESSION_TYPE": "tty", "SHLVL": "0", "MOTD_SHOWN": "pam", "HOME": "/root", "SSH_TTY": "/dev/pts/0", "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "COLORTERM": "truecolor", "LOGNAME": "root", "_": "/bin/sh", "XDG_SESSION_CLASS": "user", "TERM": "xterm-256color", "XDG_SESSION_ID": "3", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "XDG_RUNTIME_DIR": "/run/user/0", "LANG": "fr_BE.UTF-8", "SHELL": "/bin/bash", "PWD": "/root", "SSH_CONNECTION": "192.168.64.1 32844 192.168.64.162 22"}, "ansible_python": {"version": {"major": 3, "minor": 13, "micro": 5, "releaselevel": "final", "serial": 0}, "version_info": [3, 13, 5, "final", 0], "executable": "/usr/bin/python3.13", "has_sslcontext": true, "type": "cpython"}, "ansible_distribution": "Debian", "ansible_distribution_release": "trixie", "ansible_distribution_version": "13.4", "ansible_distribution_major_version": "13", "ansible_distribution_file_path": "/etc/os-release", "ansible_distribution_file_variety": "Debian", "ansible_distribution_file_parsed": true, "ansible_distribution_minor_version": "4", "ansible_os_family": "Debian", "ansible_selinux_python_present": true, "ansible_selinux": {"status": "disabled"}, "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDx4HMEkeOzrtUHhbFzNMbB7vUeQOtEVgAe6msbjaYgxt0GKKFbGCJg8VhIlLV+fe2k2l48xvnR0DiPdvcOsvUtGZrMhMJeWfYMUSLa4JUtAvtdoZ5XZqsHHCnh0Cg1GBReWWFjYDPykkCTzcolGWFr0fkl167uLcfQez2hll3LvKWs8u9Yl296fxlNw8HIYfS66wZ5CayBzPmP4djFiKfrYcAyfvDN9EnH5z4HiEdjg6/1CcgNln+K1F31BO0AEhGmXlD+2YnVcgpa5rZbZmO/UyhCbAz7ZpFT00sXDvNMLNX1TcALi6lt4HYvT3YcCuhnf7/VoLIMxS7h5Zm0BNiXLmXhIMCWS6H1ab0D/508iaMR6yApnUp3NeQA5iuHQYb+cFqQzaVlsx20kinyGs8CUv6i4rCgBqvlNDKK0VnjacdXw+Q7G1vdz9qaozx/d9DXDyMTZRUUI4k0wnOzhsGeGbteSmE9qLwsn7G+2VUZuPVpJvMg0FqdZ4RrQnCM7bU=", "ansible_ssh_host_key_rsa_public_keytype": "ssh-rsa", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAK9vMzw4Bc54AfzNk9UYGsVlceD+0NdxK7P0IAMPTAQA4msUSX3xE70N3m0Y+t5D6Qe1RJgQZcq8nM6FdMjers=", "ansible_ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAICo2q7gpAEVqElfGK/Wqf+gVwtm6D9URbdb9Tk6dd71w", "ansible_ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ansible_dns": {"search": ["cndp-erpent.be"], "nameservers": ["1.1.1.3", "1.0.0.3"]}, "ansible_pkg_mgr": "apt", "ansible_system_capabilities_enforced": "False", "ansible_system_capabilities": [], "ansible_apparmor": {"status": "enabled"}, "ansible_user_id": "root", "ansible_user_uid": 0, "ansible_user_gid": 0, "ansible_user_gecos": "root", "ansible_user_dir": "/root", "ansible_user_shell": "/bin/bash", "ansible_real_user_id": 0, "ansible_effective_user_id": 0, "ansible_real_group_id": 0, "ansible_effective_group_id": 0, "ansible_local": {}, "ansible_service_mgr": "systemd", "gather_subset": ["min"], "module_setup": true}, "invocation": {"module_args": {"gather_subset": ["min"], "gather_timeout": 10, "filter": [], "fact_path": "/etc/ansible/facts.d"}}}\r\n', b'Shared connection to 192.168.64.162 closed.\r\n')
<192.168.64.162> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.162> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/5a4d730b2d"' -o NumberOfPasswordPrompts=1 -tt 192.168.64.162 '/bin/sh -c '"'"'cat /proc/sys/kernel/random/boot_id && sleep 0'"'"''
<192.168.64.162> (0, b'41043705-c265-419c-9c74-e305e752b63d\r\n', b'Shared connection to 192.168.64.162 closed.\r\n')
Using module file /usr/lib/python3/dist-packages/ansible/modules/find.py
Using module file /usr/lib/python3/dist-packages/ansible/modules/find.py
<192.168.64.163> PUT /root/.ansible/tmp/ansible-local-24934y68ya6i2/tmpr3pqhiw6 TO /root/.ansible/tmp/ansible-tmp-1773655717.9530857-24962-147052684178059/AnsiballZ_find.py
<192.168.64.163> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/f56bfdc939"' -o NumberOfPasswordPrompts=1 '[192.168.64.163]'
<192.168.64.162> PUT /root/.ansible/tmp/ansible-local-24934y68ya6i2/tmpmp65sdn9 TO /root/.ansible/tmp/ansible-tmp-1773655717.9367526-24961-135382348300122/AnsiballZ_find.py
<192.168.64.162> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/5a4d730b2d"' -o NumberOfPasswordPrompts=1 '[192.168.64.162]'
<192.168.64.163> (0, b'sftp> put /root/.ansible/tmp/ansible-local-24934y68ya6i2/tmpr3pqhiw6 /root/.ansible/tmp/ansible-tmp-1773655717.9530857-24962-147052684178059/AnsiballZ_find.py\n', b'')
<192.168.64.163> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.162> (0, b'sftp> put /root/.ansible/tmp/ansible-local-24934y68ya6i2/tmpmp65sdn9 /root/.ansible/tmp/ansible-tmp-1773655717.9367526-24961-135382348300122/AnsiballZ_find.py\n', b'')
<192.168.64.163> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/f56bfdc939"' -o NumberOfPasswordPrompts=1 192.168.64.163 '/bin/sh -c '"'"'chmod u+rwx /root/.ansible/tmp/ansible-tmp-1773655717.9530857-24962-147052684178059/ /root/.ansible/tmp/ansible-tmp-1773655717.9530857-24962-147052684178059/AnsiballZ_find.py && sleep 0'"'"''
<192.168.64.162> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.162> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/5a4d730b2d"' -o NumberOfPasswordPrompts=1 192.168.64.162 '/bin/sh -c '"'"'chmod u+rwx /root/.ansible/tmp/ansible-tmp-1773655717.9367526-24961-135382348300122/ /root/.ansible/tmp/ansible-tmp-1773655717.9367526-24961-135382348300122/AnsiballZ_find.py && sleep 0'"'"''
<192.168.64.163> (0, b'', b'')
<192.168.64.163> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.163> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/f56bfdc939"' -o NumberOfPasswordPrompts=1 -tt 192.168.64.163 '/bin/sh -c '"'"'/usr/bin/python3.13 /root/.ansible/tmp/ansible-tmp-1773655717.9530857-24962-147052684178059/AnsiballZ_find.py && sleep 0'"'"''
<192.168.64.162> (0, b'', b'')
<192.168.64.162> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.162> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/5a4d730b2d"' -o NumberOfPasswordPrompts=1 -tt 192.168.64.162 '/bin/sh -c '"'"'/usr/bin/python3.13 /root/.ansible/tmp/ansible-tmp-1773655717.9367526-24961-135382348300122/AnsiballZ_find.py && sleep 0'"'"''
<192.168.64.163> (0, b'\r\n{"files": [{"path": "/sbin/shutdown", "mode": "0777", "isdir": false, "ischr": false, "isblk": false, "isreg": false, "isfifo": false, "islnk": true, "issock": false, "uid": 0, "gid": 0, "size": 16, "inode": 10098296, "dev": 66306, "nlink": 1, "atime": 1773654984.9517856, "mtime": 1756924700.0, "ctime": 1773648132.4098818, "gr_name": "root", "pw_name": "root", "wusr": true, "rusr": true, "xusr": true, "wgrp": true, "rgrp": true, "xgrp": true, "woth": true, "roth": true, "xoth": true, "isuid": false, "isgid": false}, {"path": "/usr/sbin/shutdown", "mode": "0777", "isdir": false, "ischr": false, "isblk": false, "isreg": false, "isfifo": false, "islnk": true, "issock": false, "uid": 0, "gid": 0, "size": 16, "inode": 10098296, "dev": 66306, "nlink": 1, "atime": 1773654984.9517856, "mtime": 1756924700.0, "ctime": 1773648132.4098818, "gr_name": "root", "pw_name": "root", "wusr": true, "rusr": true, "xusr": true, "wgrp": true, "rgrp": true, "xgrp": true, "woth": true, "roth": true, "xoth": true, "isuid": false, "isgid": false}], "changed": false, "msg": "All paths examined", "matched": 2, "examined": 4146, "skipped_paths": {}, "invocation": {"module_args": {"paths": ["/sbin", "/bin", "/usr/sbin", "/usr/bin", "/usr/local/sbin"], "patterns": ["shutdown"], "file_type": "any", "read_whole_file": false, "age_stamp": "mtime", "recurse": false, "hidden": false, "follow": false, "get_checksum": false, "checksum_algorithm": "sha1", "use_regex": false, "exact_mode": true, "excludes": null, "contains": null, "age": null, "size": null, "depth": null, "mode": null, "encoding": null, "limit": null}}}\r\n', b'Shared connection to 192.168.64.163 closed.\r\n')
ansible.builtin.reboot: rebooting server...
<192.168.64.163> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.163> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/f56bfdc939"' -o NumberOfPasswordPrompts=1 -tt 192.168.64.163 '/bin/sh -c '"'"'/sbin/shutdown -r 0 "Reboot initiated by Ansible" && sleep 0'"'"''
<192.168.64.163> (0, b"Reboot scheduled for Mon 2026-03-16 11:08:39 CET, use 'shutdown -c' to cancel.\r\r\n", b'Shared connection to 192.168.64.163 closed.\r\n')
ansible.builtin.reboot: validating reboot
ansible.builtin.reboot: attempting to get system boot time
<192.168.64.163> sending connection check: [b'ssh', b'-C', b'-o', b'ControlMaster=auto', b'-o', b'ControlPersist=60s', b'-o', b'KbdInteractiveAuthentication=no', b'-o', b'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', b'-o', b'PasswordAuthentication=no', b'-o', b'User="root"', b'-o', b'ConnectTimeout=10', b'-o', b'ControlPath="/root/.ansible/cp/f56bfdc939"', b'-o', b'NumberOfPasswordPrompts=1', b'-O', b'check', b'192.168.64.163']
<192.168.64.163> sending connection stop: [b'ssh', b'-C', b'-o', b'ControlMaster=auto', b'-o', b'ControlPersist=60s', b'-o', b'KbdInteractiveAuthentication=no', b'-o', b'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', b'-o', b'PasswordAuthentication=no', b'-o', b'User="root"', b'-o', b'ConnectTimeout=10', b'-o', b'ControlPath="/root/.ansible/cp/f56bfdc939"', b'-o', b'NumberOfPasswordPrompts=1', b'-O', b'stop', b'192.168.64.163']
<192.168.64.163> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.163> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/f56bfdc939"' -o NumberOfPasswordPrompts=1 -tt 192.168.64.163 '/bin/sh -c '"'"'cat /proc/sys/kernel/random/boot_id && sleep 0'"'"''
<192.168.64.162> (0, b'\r\n{"files": [{"path": "/sbin/shutdown", "mode": "0777", "isdir": false, "ischr": false, "isblk": false, "isreg": false, "isfifo": false, "islnk": true, "issock": false, "uid": 0, "gid": 0, "size": 16, "inode": 8263288, "dev": 66306, "nlink": 1, "atime": 1773654985.4334078, "mtime": 1756924700.0, "ctime": 1773648205.6743143, "gr_name": "root", "pw_name": "root", "wusr": true, "rusr": true, "xusr": true, "wgrp": true, "rgrp": true, "xgrp": true, "woth": true, "roth": true, "xoth": true, "isuid": false, "isgid": false}, {"path": "/usr/sbin/shutdown", "mode": "0777", "isdir": false, "ischr": false, "isblk": false, "isreg": false, "isfifo": false, "islnk": true, "issock": false, "uid": 0, "gid": 0, "size": 16, "inode": 8263288, "dev": 66306, "nlink": 1, "atime": 1773654985.4334078, "mtime": 1756924700.0, "ctime": 1773648205.6743143, "gr_name": "root", "pw_name": "root", "wusr": true, "rusr": true, "xusr": true, "wgrp": true, "rgrp": true, "xgrp": true, "woth": true, "roth": true, "xoth": true, "isuid": false, "isgid": false}], "changed": false, "msg": "All paths examined", "matched": 2, "examined": 4146, "skipped_paths": {}, "invocation": {"module_args": {"paths": ["/sbin", "/bin", "/usr/sbin", "/usr/bin", "/usr/local/sbin"], "patterns": ["shutdown"], "file_type": "any", "read_whole_file": false, "age_stamp": "mtime", "recurse": false, "hidden": false, "follow": false, "get_checksum": false, "checksum_algorithm": "sha1", "use_regex": false, "exact_mode": true, "excludes": null, "contains": null, "age": null, "size": null, "depth": null, "mode": null, "encoding": null, "limit": null}}}\r\n', b'Shared connection to 192.168.64.162 closed.\r\n')
ansible.builtin.reboot: rebooting server...
<192.168.64.162> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.162> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/5a4d730b2d"' -o NumberOfPasswordPrompts=1 -tt 192.168.64.162 '/bin/sh -c '"'"'/sbin/shutdown -r 0 "Reboot initiated by Ansible" && sleep 0'"'"''
<192.168.64.162> (0, b"Reboot scheduled for Mon 2026-03-16 11:08:39 CET, use 'shutdown -c' to cancel.\r\r\n", b'Shared connection to 192.168.64.162 closed.\r\n')
ansible.builtin.reboot: validating reboot
ansible.builtin.reboot: attempting to get system boot time
<192.168.64.162> sending connection check: [b'ssh', b'-C', b'-o', b'ControlMaster=auto', b'-o', b'ControlPersist=60s', b'-o', b'KbdInteractiveAuthentication=no', b'-o', b'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', b'-o', b'PasswordAuthentication=no', b'-o', b'User="root"', b'-o', b'ConnectTimeout=10', b'-o', b'ControlPath="/root/.ansible/cp/5a4d730b2d"', b'-o', b'NumberOfPasswordPrompts=1', b'-O', b'check', b'192.168.64.162']
<192.168.64.162> sending connection stop: [b'ssh', b'-C', b'-o', b'ControlMaster=auto', b'-o', b'ControlPersist=60s', b'-o', b'KbdInteractiveAuthentication=no', b'-o', b'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', b'-o', b'PasswordAuthentication=no', b'-o', b'User="root"', b'-o', b'ConnectTimeout=10', b'-o', b'ControlPath="/root/.ansible/cp/5a4d730b2d"', b'-o', b'NumberOfPasswordPrompts=1', b'-O', b'stop', b'192.168.64.162']
<192.168.64.162> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.64.162> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp/5a4d730b2d"' -o NumberOfPasswordPrompts=1 -tt 192.168.64.162 '/bin/sh -c '"'"'cat /proc/sys/kernel/random/boot_id && sleep 0'"'"''

4 posts - 3 participants