- local_action: wait_for host="{{ansible_host}}" delay=15 state=started port=22 connect_timeout=10 timeout=720
- when:
- - grub_cmdline.changed or grub_cmdline_default.changed or platform_affinity.changed
- - hostname != installation_controller
- - installation_phase != "postconfig-ended" or (scaled_out_nodes is defined and hostname in scaled_out_nodes) or (reinitialized_nodes is defined and hostname in reinitialized_nodes)
+ wait_for:
+ host: "{{ansible_host}}"
+ port: 22
+ delay: 15
+ search_regex: OpenSSH
+ sleep: 5
+ timeout: 3600
+ connection: local
+ register: remote_success
+ until: remote_success is succeeded
+ retries: 3
+ when: reboot_node is changed