diff options
author | Stefanie Forrester <dak1n1@users.noreply.github.com> | 2015-09-03 09:24:28 -0700 |
---|---|---|
committer | Stefanie Forrester <dak1n1@users.noreply.github.com> | 2015-09-03 09:24:28 -0700 |
commit | e45af8287f8118830c2328c9630f6ee4d5776ce8 (patch) | |
tree | 4566df220395faa715698437b81dfe6efffa816e /roles/openshift_manage_node | |
parent | 7d480fbab74ddc8f76279f32c1a64148e5844382 (diff) | |
parent | 8e3d2689c442762cdd5df08ca31721c5b17b2ee8 (diff) | |
download | openshift-e45af8287f8118830c2328c9630f6ee4d5776ce8.tar.gz openshift-e45af8287f8118830c2328c9630f6ee4d5776ce8.tar.bz2 openshift-e45af8287f8118830c2328c9630f6ee4d5776ce8.tar.xz openshift-e45af8287f8118830c2328c9630f6ee4d5776ce8.zip |
Merge pull request #522 from dak1n1/master_schedule
added new fact for schedulability and fixed spelling
Diffstat (limited to 'roles/openshift_manage_node')
-rw-r--r-- | roles/openshift_manage_node/tasks/main.yml | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/roles/openshift_manage_node/tasks/main.yml b/roles/openshift_manage_node/tasks/main.yml index 74e702248..7c4f45ce6 100644 --- a/roles/openshift_manage_node/tasks/main.yml +++ b/roles/openshift_manage_node/tasks/main.yml @@ -7,15 +7,11 @@ delay: 5 with_items: openshift_nodes -- name: Handle unscheduleable node +- name: Set node schedulability command: > - {{ openshift.common.admin_binary }} manage-node {{ item }} --schedulable=false - with_items: openshift_unscheduleable_nodes - -- name: Handle scheduleable node - command: > - {{ openshift.common.admin_binary }} manage-node {{ item }} --schedulable=true - with_items: openshift_scheduleable_nodes + {{ openshift.common.admin_binary }} manage-node {{ item.openshift.common.hostname }} --schedulable={{ 'true' if item.openshift.node.schedulable | bool else 'false' }} + with_items: + - "{{ openshift_node_vars }}" - name: Label nodes command: > |