summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/tasks/system_container.yml
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2017-02-12 19:25:15 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2017-02-14 15:54:13 +0100
commit95cf33d8b8e9bfeffbf1cc80bf55fc3c603be190 (patch)
tree75903ad167b0b9a855ed2b655f888229d282b19d /roles/openshift_master/tasks/system_container.yml
parent9347f8d1f7b34b9362d2807878c963e6baea4896 (diff)
downloadopenshift-95cf33d8b8e9bfeffbf1cc80bf55fc3c603be190.tar.gz
openshift-95cf33d8b8e9bfeffbf1cc80bf55fc3c603be190.tar.bz2
openshift-95cf33d8b8e9bfeffbf1cc80bf55fc3c603be190.tar.xz
openshift-95cf33d8b8e9bfeffbf1cc80bf55fc3c603be190.zip
master, vars/main.yml: define l_is_ha and l_is_same_version
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'roles/openshift_master/tasks/system_container.yml')
-rw-r--r--roles/openshift_master/tasks/system_container.yml24
1 files changed, 12 insertions, 12 deletions
diff --git a/roles/openshift_master/tasks/system_container.yml b/roles/openshift_master/tasks/system_container.yml
index 90cbc243d..a0e1ac75e 100644
--- a/roles/openshift_master/tasks/system_container.yml
+++ b/roles/openshift_master/tasks/system_container.yml
@@ -17,8 +17,8 @@
changed_when: "'Extracting' in update_result.stdout"
when:
- ("master" in result.stdout)
- - (openshift.common.version is defined) and (openshift.common.version == openshift_version) | bool
- - openshift.master.ha is not defined or not openshift.master.ha | bool
+ - l_is_same_version
+ - not l_is_ha
- name: Uninstall Master system container package
command: >
@@ -26,15 +26,15 @@
failed_when: False
when:
- ("master" in result.stdout)
- - (openshift.common.version is not defined) or (openshift.common.version != openshift_version) | bool
- - openshift.master.ha is not defined or not openshift.master.ha | bool
+ - not l_is_same_version
+ - not l_is_ha
- name: Install Master system container package
command: >
atomic install --system --name={{ openshift.common.service_type }}-master {{ openshift.common.system_images_registry }}/{{ openshift.master.master_system_image }}:{{ openshift_image_tag }}
when:
- - (openshift.common.version is not defined) or (openshift.common.version != openshift_version) or ("master" not in result.stdout) | bool
- - openshift.master.ha is not defined or not openshift.master.ha | bool
+ - not l_is_same_version or ("master" not in result.stdout) | bool
+ - not l_is_ha
notify:
- restart master
@@ -49,8 +49,8 @@
- controllers
when:
- ("master" in result.stdout)
- - (openshift.common.version is defined) and (openshift.common.version == openshift_version) | bool
- - openshift.master.ha is defined and openshift.master.ha | bool
+ - l_is_same_version
+ - l_is_ha
- name: Uninstall Master HA system container package
command: >
@@ -61,8 +61,8 @@
- controllers
when:
- ("master" in result.stdout)
- - (openshift.common.version is not defined) or (openshift.common.version != openshift_version) | bool
- - openshift.master.ha is defined and openshift.master.ha | bool
+ - not l_is_same_version
+ - l_is_ha
- name: Install Master HA system container package
command: >
@@ -71,7 +71,7 @@
- api
- controllers
when:
- - (openshift.common.version is not defined) or (openshift.common.version != openshift_version) or ("master" not in result.stdout) | bool
- - openshift.master.ha is defined and openshift.master.ha | bool
+ - not l_is_same_version or ("master" not in result.stdout) | bool
+ - l_is_ha
notify:
- restart master