Files

26 lines
518 B
YAML
Raw Permalink Normal View History

2025-08-27 05:54:16 +00:00
---
2025-08-27 16:51:36 +00:00
- name: Ensure Directory
ansible.builtin.file:
path: /etc/rancher/k3s
state: directory
owner: root
group: root
mode: "755"
become: True
2025-08-27 05:54:16 +00:00
- name: Copy Configuration
ansible.builtin.template:
src: config.yaml.j2
dest: /etc/rancher/k3s/config.yaml
owner: root
group: root
mode: "644"
become: True
- name: Run Installation
2025-08-27 16:51:36 +00:00
ansible.builtin.shell:
2025-08-27 05:54:16 +00:00
cmd: curl -sfL https://get.k3s.io | sh -s - agent
creates: /etc/systemd/system/k3s-agent.service
become: True