Skip to content

Instantly share code, notes, and snippets.

# The following is a workaround for https://github.com/ansible/ansible/issues/61688
# It users the add_host module to change the host (https://docs.ansible.com/ansible/latest/collections/ansible/builtin/add_host_module.html)
- name: "Determine IP Address"
hosts: localhost
tasks:
- name: "Check if myhost is at location A"
wait_for: