etcd_kubeadm simplify assert

This commit is contained in:
Max Gautier
2025-01-20 16:55:35 +01:00
parent 85d9e3e2ae
commit ed789c9b97

View File

@@ -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: