Skip to content

Instantly share code, notes, and snippets.

@archit
Created August 11, 2015 23:04
Show Gist options
  • Save archit/82f387eb08d888a873b3 to your computer and use it in GitHub Desktop.
Save archit/82f387eb08d888a873b3 to your computer and use it in GitHub Desktop.
Determine latest release of a github repo in ansible task
tasks:
- name: find release
uri: url=https://api.github.com/repos/{{ org_name }}/{{ repo_name }}/releases/{{ release_version }}
user={{ auth_user }}
password=x-oauth-basic
force_basic_auth=yes
return_content=yes
register: github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment