good start
This commit is contained in:
0
roles/k3s-ha/tasks/install.yml
Normal file
0
roles/k3s-ha/tasks/install.yml
Normal file
13
roles/k3s-ha/tasks/main.yml
Normal file
13
roles/k3s-ha/tasks/main.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
- name: Download k3s install script
|
||||
get_url:
|
||||
url: https://get.k3s.io
|
||||
dest: /tmp/install-k3s.sh
|
||||
mode: 0755
|
||||
|
||||
- name: Create k3s config file
|
||||
template:
|
||||
src: ../templates/config.yml.j2
|
||||
dest: /tmp/config.yml
|
||||
|
||||
- name: Execute k3s install script providing a config.yml
|
||||
shell: /tmp/install-k3s.sh --config /tmp/config.yml server
|
7
roles/k3s-ha/templates/config.yml.j2
Normal file
7
roles/k3s-ha/templates/config.yml.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
disable:
|
||||
- traefik
|
||||
- servicelb
|
||||
|
||||
cluster-init: "{{ inventory_hostname == groups['fedora-server'][0] }}"
|
||||
server: "{{ groups['fedora-server'][0] }}"
|
||||
token: {{ k3s_token }}
|
Reference in New Issue
Block a user