From c3622d040645d5e95ce6e7156fc42a67ebb57663 Mon Sep 17 00:00:00 2001 From: Samuel Padgett Date: Tue, 23 Jan 2018 11:14:08 -0500 Subject: Only rollout console if config changed --- roles/openshift_web_console/tasks/update_console_config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'roles/openshift_web_console') diff --git a/roles/openshift_web_console/tasks/update_console_config.yml b/roles/openshift_web_console/tasks/update_console_config.yml index 41da2c16a..967222ea4 100644 --- a/roles/openshift_web_console/tasks/update_console_config.yml +++ b/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 -- cgit v1.2.3