소스 검색

Don't try to label node if there's no labels

Diego Castro 9 년 전
부모
커밋
9a41d23f55
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      roles/openshift_manage_node/tasks/main.yml

+ 2 - 0
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]"