k3s: debian vm and manifest

This commit is contained in:
2026-02-26 11:43:13 +01:00
parent 0cab06acd4
commit 8ad2c150a4
13 changed files with 267 additions and 27 deletions

28
ansible/k3s.yml Normal file
View File

@@ -0,0 +1,28 @@
- name: Configure k3s VM
hosts: k3s
become: true
tasks:
- name: Install dependencies
apt:
name:
- curl
- name: Install k3s
shell: curl -sfL https://get.k3s.io | sh -
args:
creates: /usr/local/bin/k3s
- name: Copy Manifest
copy:
src: ../kubernetes/manifest.yml
dest: /home/debian/manifest.yml
- name: Allow Password Authetification
lineinfile:
dest=/etc/ssh/sshd_config
regexp="^PasswordAuthentication no"
line="PasswordAuthentication yes"
state=present
- name: Restart sshd
shell: systemctl restart sshd.service