---
- hosts: all
  become: False
  gather_facts: False

  tasks:
  - name: Wait until SSH is available
    wait_for:
      host: "{{ ansible_ssh_host }}"
      port: 22
      timeout: 240
    delegate_to: localhost