Browse Source

Merge pull request #6836 from spadgett/rollout-only-if-changed

Automatic merge from submit-queue.

Only rollout console if config changed

/assign @sdodson 
@jwforres FYI
OpenShift Merge Robot 7 years ago
parent
commit
a5cb77982a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      roles/openshift_web_console/tasks/update_console_config.yml

+ 2 - 1
roles/openshift_web_console/tasks/update_console_config.yml

@@ -55,6 +55,7 @@
       state: present
       from_file:
         webconsole-config.yaml: "{{ mktemp_console.stdout }}/webconsole-config.yaml"
+    register: update_console_config_map
 
   - name: Remove temp directory
     file:
@@ -62,5 +63,5 @@
       name: "{{ mktemp_console.stdout }}"
     changed_when: False
 
-  # TODO: Only rollout if config has changed.
   - include_tasks: rollout_console.yml
+    when: update_console_config_map.changed | bool