This file contains 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
# 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: |