Skip to content

Instantly share code, notes, and snippets.

@nilsmeyer
Created March 29, 2019 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nilsmeyer/1b703dd4b54157f7cb71b0ff913a5b6f to your computer and use it in GitHub Desktop.
Save nilsmeyer/1b703dd4b54157f7cb71b0ff913a5b6f to your computer and use it in GitHub Desktop.
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