Add check that kube-master, kube-node and etcd groups are not empty.
parent
1d8627eb8b
commit
2197330727
|
@ -5,6 +5,15 @@
|
||||||
- ansible_version.full|version_compare('2.3.0', '>=')
|
- ansible_version.full|version_compare('2.3.0', '>=')
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
|
||||||
|
- name: Stop if either kube-master, kube-node or etcd is empty
|
||||||
|
assert:
|
||||||
|
that: groups.get('{{ item }}')
|
||||||
|
with_items:
|
||||||
|
- kube-master
|
||||||
|
- kube-node
|
||||||
|
- etcd
|
||||||
|
run_once: true
|
||||||
|
|
||||||
- name: Stop if non systemd OS type
|
- name: Stop if non systemd OS type
|
||||||
assert:
|
assert:
|
||||||
that: ansible_service_mgr == "systemd"
|
that: ansible_service_mgr == "systemd"
|
||||||
|
|
Loading…
Reference in New Issue