diff options
author | Diego Castro <spinolacastro@gmail.com> | 2015-08-10 11:50:57 -0300 |
---|---|---|
committer | Diego Castro <spinolacastro@gmail.com> | 2015-08-10 11:50:57 -0300 |
commit | 9a41d23f553ab638af22f54fbd30c4de3b0eae18 (patch) | |
tree | 152de3a733137885777109c00c2552dd9cc7c449 | |
parent | c17efa0172a11f79cb28d3c5740b7c16ed70c3b8 (diff) | |
download | openshift-9a41d23f553ab638af22f54fbd30c4de3b0eae18.tar.gz openshift-9a41d23f553ab638af22f54fbd30c4de3b0eae18.tar.bz2 openshift-9a41d23f553ab638af22f54fbd30c4de3b0eae18.tar.xz openshift-9a41d23f553ab638af22f54fbd30c4de3b0eae18.zip |
Don't try to label node if there's no labels
-rw-r--r-- | roles/openshift_manage_node/tasks/main.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/openshift_manage_node/tasks/main.yml b/roles/openshift_manage_node/tasks/main.yml index c488af723..472d63efe 100644 --- a/roles/openshift_manage_node/tasks/main.yml +++ b/roles/openshift_manage_node/tasks/main.yml @@ -22,3 +22,5 @@ {{ openshift.common.client_binary }} label --overwrite node {{ item }} {{ hostvars[item]['openshift_node_labels'] | oo_combine_dict }} with_items: - "{{ openshift_nodes }}" + when: + "'openshift_node_labels' in hostvars[item]" |