fix(k3s): use correct variables in conditional clauses

!2
This commit is contained in:
2023-10-29 17:10:10 +09:30
parent 8272b2507b
commit 9ac52ee165
2 changed files with 7 additions and 9 deletions

View File

@ -6,8 +6,8 @@
update_cache: false
when: >
ansible_os_family == 'Debian'
and
kubernetes.networking.encrypt | default(false) | bool
# and
# kubernetes.networking.encrypt | default(false) | bool
- name: Enable Cluster Encryption
@ -15,10 +15,6 @@
cmd: kubectl patch felixconfiguration default --type='merge' -p '{"spec":{"wireguardEnabled":true,"wireguardEnabledV6":true}}'
changed_when: false
when: >
ansible_os_family == 'Debian'
and
kubernetes.networking.encrypt | default(false) | bool
and
kubernetes_config.cluster.prime.name == inventory_hostname
- name: Set Kubernetes Encryption Final Install Fact