Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
check if url is reachable in ansible
- 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
You can’t perform that action at this time.