Created
March 29, 2019 11:02
-
-
Save nilsmeyer/1b703dd4b54157f7cb71b0ff913a5b6f to your computer and use it in GitHub Desktop.
check if url is reachable in ansible
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
- name: check metadata endpoint | |
uri: | |
url: http://169.254.169.254/latest/meta-data/ | |
timeout: 1 | |
return_content: yes | |
register: _nmiac_metadata | |
changed_when: no | |
check_mode: no | |
failed_when: no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment