-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.yml
49 lines (41 loc) · 889 Bytes
/
site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
- hosts: all
tasks:
- name: Add SSH keys
authorized_key:
user: "{{ ansible_user }}"
state: present
key: "{{ item }}"
loop: "{{ ssh_keys + additional_ssh_keys | unique }}"
- name: Disable password login
lineinfile:
dest: /etc/ssh/sshd_config
regexp: '^(#\s*)?PasswordAuthentication '
line: 'PasswordAuthentication no'
when: disable_password_login
- hosts: cluster
become: true
roles:
- role: rpi/common # sets facts for subsequent roles!
- role: rpi/gps_sync
when: raspberry_pi|default(false)
- role: wireguard
# Install K3S
- hosts: cluster
gather_facts: true
become: true
roles:
- role: k3s/prereq
- role: k3s/download
- hosts: master
become: true
roles:
- role: k3s/master
- hosts: node
become: true
roles:
- role: k3s/node
- hosts: master
become: true
roles:
- role: riasc