preinstall: fixup etcd_deployment_type check (#7152)
fixes 8331939aed
Thanks to Tomas Vanderka / karlism / LuckySB
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
pull/7160/head
parent
9c5c1a09a1
commit
8c1821228d
|
@ -273,14 +273,18 @@
|
||||||
assert:
|
assert:
|
||||||
that: etcd_deployment_type in ['host', 'docker']
|
that: etcd_deployment_type in ['host', 'docker']
|
||||||
msg: "The etcd deployment type, 'etcd_deployment_type', must be host or docker"
|
msg: "The etcd deployment type, 'etcd_deployment_type', must be host or docker"
|
||||||
run_once: true
|
when:
|
||||||
|
- inventory_hostname in groups['etcd']
|
||||||
|
- not etcd_kubeadm_enabled
|
||||||
|
|
||||||
- name: Stop if etcd deployment type is not host when container_manager != docker
|
- name: Stop if etcd deployment type is not host when container_manager != docker
|
||||||
assert:
|
assert:
|
||||||
that: etcd_deployment_type == 'host'
|
that: etcd_deployment_type == 'host'
|
||||||
msg: "The etcd deployment type, 'etcd_deployment_type', must be host when container_manager is not docker"
|
msg: "The etcd deployment type, 'etcd_deployment_type', must be host when container_manager is not docker"
|
||||||
when: container_manager != 'docker'
|
when:
|
||||||
run_once: true
|
- inventory_hostname in groups['etcd']
|
||||||
|
- not etcd_kubeadm_enabled
|
||||||
|
- container_manager != 'docker'
|
||||||
|
|
||||||
- name: Stop if download_localhost is enabled but download_run_once is not
|
- name: Stop if download_localhost is enabled but download_run_once is not
|
||||||
assert:
|
assert:
|
||||||
|
|
Loading…
Reference in New Issue