refactor(k3s): replace code with what the provisioner role now offers and store opentofu data accordingly
This commit is contained in:
parent
1b3e0c401c
commit
95bb861049
4 changed files with 22 additions and 83 deletions
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
# TODO: disable swap
|
||||
|
||||
- name: setup firewall rules
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
|
@ -18,11 +17,11 @@
|
|||
connection: local
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- "{{ k3sup_binary }}"
|
||||
- "{{ provisioner_facts.k3sup_binary_path }}"
|
||||
- install
|
||||
- "--merge"
|
||||
- "--local-path"
|
||||
- "{{ kubeconfig_repository }}/{{ k3s_cluster_name }}.kubeconfig"
|
||||
- "{{ provisioner_facts.kubeconfig_repository }}/{{ k3s_cluster_name }}.kubeconfig"
|
||||
- "--context"
|
||||
- "{{ k3s_kube_context }}"
|
||||
- "--k3s-extra-args"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue