fukuops/ansible/k3s/roles/k3s/tasks/agent.yml

17 lines
No EOL
329 B
YAML

---
- name: Create rancher folder
file:
state: directory
path: /etc/rancher/k3s
owner: root
group: root
mode: 755
- name: Copy k3s config file
template:
src: agent.config.yaml.j2
dest: /etc/rancher/k3s/config.yaml
mode: 600
- name: Install k3s agent
shell: "bash /tmp/k3s.install.sh agent"