diff --git a/wait-for-host.yml b/wait-for-host.yml new file mode 100644 index 0000000..ae0ce73 --- /dev/null +++ b/wait-for-host.yml @@ -0,0 +1,10 @@ +- hosts: all + gather_facts: false + tasks: + - name: wait for host to come up + become: false + delegate_to: localhost + connection: local + wait_for: + host: '{{ ansible_host | d(inventory_hostname) }}' + port: '{{ ansible_port | d(22) }}'