20 lines
384 B
YAML
20 lines
384 B
YAML
---
|
|
|
|
- name: Wait for SSH connection
|
|
wait_for:
|
|
state: started
|
|
port: 22
|
|
host: "{{ ansible_host }}"
|
|
timeout: 300
|
|
connect_timeout: 300
|
|
search_regex: OpenSSH
|
|
delegate_to: localhost
|
|
|
|
- name: Wait for cloud-init to finish
|
|
shell:
|
|
cmd: "cloud-init status --wait"
|
|
register: cloudinit
|
|
changed_when: "'.' in cloudinit.stdout"
|
|
|
|
- name: Gather facts
|
|
setup:
|