|
|
@ -54,7 +54,7 @@ |
|
|
|
run_once: true |
|
|
|
delegate_to: "{{ groups['etcd'][0] }}" |
|
|
|
when: |
|
|
|
- kube_network_plugin in ["calico", "flannel", "cilium"] or cilium_deploy_additionally | default(false) | bool |
|
|
|
- kube_network_plugin in ["calico", "flannel", "cilium"] or cilium_deploy_additionally |
|
|
|
- kube_network_plugin != "calico" or calico_datastore == "etcd" |
|
|
|
- gen_certs | default(false) |
|
|
|
notify: Set etcd_secret_changed |
|
|
@ -133,7 +133,7 @@ |
|
|
|
when: |
|
|
|
- ('etcd' in group_names) |
|
|
|
- inventory_hostname != groups['etcd'][0] |
|
|
|
- kube_network_plugin in ["calico", "flannel", "cilium"] or cilium_deploy_additionally | default(false) | bool |
|
|
|
- kube_network_plugin in ["calico", "flannel", "cilium"] or cilium_deploy_additionally |
|
|
|
- kube_network_plugin != "calico" or calico_datastore == "etcd" |
|
|
|
notify: Set etcd_secret_changed |
|
|
|
|
|
|
@ -148,7 +148,7 @@ |
|
|
|
when: |
|
|
|
- ('etcd' in group_names) |
|
|
|
- inventory_hostname != groups['etcd'][0] |
|
|
|
- kube_network_plugin in ["calico", "flannel", "cilium"] or cilium_deploy_additionally | default(false) | bool |
|
|
|
- kube_network_plugin in ["calico", "flannel", "cilium"] or cilium_deploy_additionally |
|
|
|
- kube_network_plugin != "calico" or calico_datastore == "etcd" |
|
|
|
loop_control: |
|
|
|
label: "{{ item.item }}" |
|
|
@ -162,7 +162,7 @@ |
|
|
|
- name: Gen_certs | Generate etcd certs on nodes if needed |
|
|
|
include_tasks: gen_nodes_certs_script.yml |
|
|
|
when: |
|
|
|
- kube_network_plugin in ["calico", "flannel", "cilium"] or cilium_deploy_additionally | default(false) | bool |
|
|
|
- kube_network_plugin in ["calico", "flannel", "cilium"] or cilium_deploy_additionally |
|
|
|
- kube_network_plugin != "calico" or calico_datastore == "etcd" |
|
|
|
- ('k8s_cluster' in group_names) and |
|
|
|
sync_certs | default(false) and inventory_hostname not in groups['etcd'] |
|
|
|