node installation

This commit is contained in:
Bernhard Radermacher
2025-08-27 05:54:16 +00:00
parent 0835bea3b7
commit 459d124159
4 changed files with 31 additions and 2 deletions

View 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