15 lines
408 B
YAML
15 lines
408 B
YAML
---
|
|
- name: Download K3s install script to /tmp/
|
|
ansible.builtin.get_url:
|
|
url: https://get.k3s.io
|
|
dest: /tmp/k3s_install.sh
|
|
mode: "0755"
|
|
|
|
- name: Install K3s server with and TLS SAN
|
|
ansible.builtin.command: |
|
|
/tmp/k3s_install.sh server \
|
|
--cluster-init
|
|
--tls-san {{ hostvars['k3s-loadbalancer'].ansible_default_ipv4.address }} \
|
|
--tls-san {{ k3s_server_name }}
|
|
become: true
|