node installation
This commit is contained in:
16
kube-cluster/roles/k3s-node/tasks/main.yaml
Normal file
16
kube-cluster/roles/k3s-node/tasks/main.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
|
||||
- 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
|
||||
ansible.builtin.command:
|
||||
cmd: curl -sfL https://get.k3s.io | sh -s - agent
|
||||
creates: /etc/systemd/system/k3s-agent.service
|
||||
become: True
|
||||
Reference in New Issue
Block a user