Files
richard d0d8876c43 kube-cluster-update playbook
update k3s version to 1.29
2025-08-16 20:58:08 -04:00

24 lines
483 B
YAML

---
# Main task file for k3s role
- name: check for existing config
stat:
path: /etc/systemd/system/k3s.service
register: k3s_service
- include_tasks: install.yml
when: not k3s_service.stat.exists
- include_tasks: install.yml
when: k3s_upgrade == true
- name: Start service k3s, if not started
ansible.builtin.service:
name: k3s
state: started
- include_tasks: install_helm.yml
#install required python modules
- include_tasks: install.python_modules.yml