preinstall: fixup etcd_deployment_type check (#7152)

fixes 8331939aed
Thanks to Tomas Vanderka / karlism / LuckySB

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
This commit is contained in:
Etienne Champetier 2021-01-14 09:53:05 -05:00 committed by GitHub
parent 9c5c1a09a1
commit 8c1821228d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -273,14 +273,18 @@
assert:
that: etcd_deployment_type in ['host', '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
assert:
that: etcd_deployment_type == 'host'
msg: "The etcd deployment type, 'etcd_deployment_type', must be host when container_manager is not docker"
when: container_manager != 'docker'
run_once: true
when:
- 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
assert: