--- - name: Wait until SSH becomes ready... wait_for: port: 22 host: "{{ cloud_instance_ip }}" search_regex: "OpenSSH" delay: 10 timeout: 320 state: present - name: A short pause, in order to be sure the instance is ready pause: seconds: 20 - include_tasks: local_ssh.yml