17 lines
414 B
YAML
17 lines
414 B
YAML
|
---
|
||
|
- name: Fetch install script
|
||
|
ansible.builtin.get_url:
|
||
|
url: https://get.rke2.io
|
||
|
dest: /usr/local/bin/install-rke2.sh
|
||
|
mode: 755
|
||
|
|
||
|
- name: Run install script
|
||
|
ansible.builtin.raw: INSTALL_RKE2_SKIP_RELOAD=1 install-rke2.sh
|
||
|
register: install_rke2
|
||
|
changed_when: install_rke2.rc == 0
|
||
|
|
||
|
- name: Remove install script
|
||
|
ansible.builtin.file:
|
||
|
path: /usr/local/bin/install-rke2.sh
|
||
|
state: absent
|