29 lines
652 B
YAML
29 lines
652 B
YAML
- 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
|