Browse Source

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
Etienne Champetier 3 years ago
committed by GitHub
parent
commit
8c1821228d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions
  1. 10
      roles/kubernetes/preinstall/tasks/0020-verify-settings.yml

10
roles/kubernetes/preinstall/tasks/0020-verify-settings.yml

@ -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'
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 - name: Stop if download_localhost is enabled but download_run_once is not
assert: assert:

Loading…
Cancel
Save