Created
October 12, 2022 23:05
-
-
Save jlevon/ba03de5ac050114b5eb52b29e45a91ba to your computer and use it in GitHub Desktop.
ansible for github cli updating
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: find latest release | |
uri: | |
url: https://api.github.com/repos/cli/cli/releases/latest | |
register: latest_release | |
- name: Install Github CLI deb from github | |
become: true | |
apt: | |
deb: >- | |
https://github.com/cli/cli/releases/download/{{tag}}/gh_{{tag | replace('v','')}}_linux_amd64.deb | |
vars: | |
tag: "{{ latest_release.json.tag_name }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment