refactor(k3s): enhance cluster setup and enable ArgoCD apps
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
14
roles/k3s_server/tasks/primary_installation.yml
Normal file
14
roles/k3s_server/tasks/primary_installation.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
- 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
|
||||
Reference in New Issue
Block a user