Files
configpolicy/wait-for-host.yml
Dustin C. Hatch d8472c64a2 wait-for-host: PB to wait for a host to come up
This playbook just waits for a machine to become available.  It's useful
when running Ansible immediately after creating a new machine.
2024-07-02 20:44:29 -05:00

11 lines
258 B
YAML

- 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) }}'