good start

This commit is contained in:
2023-04-26 15:34:45 +02:00
parent 73f7d667bf
commit 11bda1cc7b
12 changed files with 110 additions and 0 deletions

View File

View 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

View File

@@ -0,0 +1,7 @@
disable:
- traefik
- servicelb
cluster-init: "{{ inventory_hostname == groups['fedora-server'][0] }}"
server: "{{ groups['fedora-server'][0] }}"
token: {{ k3s_token }}