ansible-role-k3s/tasks/build/get-version.yml

13 lines
313 B
YAML
Raw Permalink Normal View History

2019-03-09 21:54:44 +01:00
---
- name: Get the latest release version from GitHub
uri:
url: "{{ k3s_github_api_releases }}"
return_content: true
body_format: json
2019-03-09 21:54:44 +01:00
register: k3s_latest_release
- name: Ensure the release version is set as a fact
set_fact:
k3s_release_version: "{{ k3s_latest_release.json.tag_name }}"