diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2015-06-26 16:57:28 -0400 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2015-06-29 14:48:48 -0400 |
commit | cde074730ed8278673498157008651d192c8236a (patch) | |
tree | 4ee6293daf334a825e9fcf1caa71ce42189a621d /roles/openshift_manage_node | |
parent | df51a7dddad9e6f93a24c3ec07a07a661e6e168a (diff) | |
download | openshift-cde074730ed8278673498157008651d192c8236a.tar.gz openshift-cde074730ed8278673498157008651d192c8236a.tar.bz2 openshift-cde074730ed8278673498157008651d192c8236a.tar.xz openshift-cde074730ed8278673498157008651d192c8236a.zip |
The manage_node commands should only run on the first master
Diffstat (limited to 'roles/openshift_manage_node')
-rw-r--r-- | roles/openshift_manage_node/tasks/main.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/openshift_manage_node/tasks/main.yml b/roles/openshift_manage_node/tasks/main.yml new file mode 100644 index 000000000..d4c623f10 --- /dev/null +++ b/roles/openshift_manage_node/tasks/main.yml @@ -0,0 +1,11 @@ +- name: Handle unscheduleable node + delegate_to: "{{ openshift_first_master }}" + command: > + {{ openshift.common.admin_binary }} manage-node {{ item }} --schedulable=false + with_items: openshift_unscheduleable_nodes + +- name: Handle scheduleable node + delegate_to: "{{ openshift_first_master }}" + command: > + {{ openshift.common.admin_binary }} manage-node {{ item }} --schedulable=true + with_items: openshift_scheduleable_nodes |