-
-
Save afahounko/bd40a2a317387beb9712872ce1ba8dd1 to your computer and use it in GitHub Desktop.
Wait for SSH to come up in an Ansible playbook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - hosts: demo | |
| tags: wait | |
| gather_facts: no | |
| tasks: | |
| - name: Wait for SSH | |
| local_action: wait_for port=22 host={% if ansible_ssh_host is defined %}{{ ansible_ssh_host }}{% else %}{{ inventory_hostname }}{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment