Skip to content

Commit

Permalink
Merge pull request #3367 from mgsergio/master
Browse files Browse the repository at this point in the history
Add check that kube-master, kube-node and etcd groups are not empty.
  • Loading branch information
k8s-ci-robot authored Sep 21, 2018
2 parents 1d8627e + 2197330 commit 6b598ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions roles/kubernetes/preinstall/tasks/0020-verify-settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
- ansible_version.full|version_compare('2.3.0', '>=')
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
assert:
that: ansible_service_mgr == "systemd"
Expand Down

0 comments on commit 6b598ea

Please sign in to comment.