feat: changed lxc to vm in k3s

This commit is contained in:
Lino Silva
2023-01-03 11:59:54 +00:00
parent 1913d6417c
commit c9c9861a82
33 changed files with 413 additions and 164 deletions
+3 -3
View File
@@ -75,8 +75,8 @@
cmd: k3s kubectl get nodes -l "node-role.kubernetes.io/master=true" -o=jsonpath="{.items[*].metadata.name}"
register: nodes
until: nodes.rc == 0 and (nodes.stdout.split() | length) == (groups['master'] | length)
retries: "{{ retry_count | default(20) }}"
delay: 10
retries: "{{ retry_count | default(40) }}"
delay: 20
changed_when: false
always:
- name: Save logs of k3s-init.service
@@ -84,7 +84,7 @@
when: log_destination
vars:
log_destination: >-
{{ lookup('ansible.builtin.env', 'ANSIBLE_K3S_LOG_DIR', default=False) }}
{{ lookup('ansible.builtin.env', 'ANSIBLE_K3S_LOG_DIR', default=True) }}
- name: Kill the temporary service used for initialization
systemd:
name: k3s-init