Browse Source

etcd_kubeadm simplify assert

pull/11901/head
Max Gautier 3 months ago
parent
commit
ed789c9b97
Failed to extract signature
1 changed files with 1 additions and 2 deletions
  1. 3
      roles/kubernetes/preinstall/tasks/0040-verify-settings.yml

3
roles/kubernetes/preinstall/tasks/0040-verify-settings.yml

@ -22,12 +22,11 @@
- name: Stop if etcd group is empty in external etcd mode - name: Stop if etcd group is empty in external etcd mode
assert: assert:
that: groups.get('etcd')
that: groups.get('etcd') or etcd_deployment_type == 'kubeadm'
fail_msg: "Group 'etcd' cannot be empty in external etcd mode" fail_msg: "Group 'etcd' cannot be empty in external etcd mode"
run_once: true run_once: true
when: when:
- not ignore_assert_errors - not ignore_assert_errors
- etcd_deployment_type != "kubeadm"
- name: Stop if non systemd OS type - name: Stop if non systemd OS type
assert: assert:

Loading…
Cancel
Save