mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-12-02 13:25:00 +01:00
11 lines
286 B
YAML
11 lines
286 B
YAML
|
---
|
||
|
|
||
|
- name: Get the latest release version from GitHub
|
||
|
uri:
|
||
|
url: https://github.com/rancher/k3s/releases/latest
|
||
|
register: k3s_latest_release
|
||
|
|
||
|
- name: Ensure the release version is set as a fact
|
||
|
set_fact:
|
||
|
k3s_release_version: "{{ k3s_latest_release.url.split('/')[-1] }}"
|