Browse Source

fixed node label bug

Matt Woodson 6 years ago
parent
commit
1e92399738
1 changed files with 1 additions and 2 deletions
  1. 1 2
      roles/openshift_node_group/tasks/create_config.yml

+ 1 - 2
roles/openshift_node_group/tasks/create_config.yml

@@ -13,7 +13,7 @@
   run_once: true
 
 - when:
-  - configout.results.results.0 == {} or (configout.results.results.0 != {} and openshift_node_group_edits|length > 0)
+  - configout.results.results.0 == {} or (configout.results.results.0 != {} and (openshift_node_group_edits|length > 0 or openshift_node_group_labels|length > 0))
   block:
   - name: create a temp dir for this work
     command: mktemp -d /tmp/openshift_node_config-XXXXXX
@@ -42,7 +42,6 @@
       src: "{{ mktempout.stdout }}/node-config.yaml"
       edits: "{{ openshift_node_group_edits | union(openshift_node_labels_edit) }}"
     register: yeditout
-    when: openshift_node_group_edits|length > 0
     run_once: true
 
   - name: show the yeditout debug var