Fix upgrade_tasks for TripleO UI
Fix the "error while evaluating conditional" in Ansible in the when statements. Change-Id: Iddcfd9c63252f16f3972310984c06c539f1c2f0a
This commit is contained in:
parent
7b74e8b90e
commit
5dfd932b69
|
@ -139,9 +139,14 @@ outputs:
|
|||
- name: "PreUpgrade step0,validation: Check if tripleo-ui is running"
|
||||
shell: systemctl status 'httpd' | grep -q tripleo-ui
|
||||
tags: validation
|
||||
when: httpd_enabled.rc == 0 and httpd_running.rc == 0
|
||||
when:
|
||||
- httpd_enabled.rc == 0
|
||||
- httpd_running.rc == 0
|
||||
- name: Stop and disable tripleo-ui service (running under httpd)
|
||||
when: httpd_enabled.rc == 0 and httpd_running.rc == 0 and step|int == 2
|
||||
when:
|
||||
- step|int == 2
|
||||
- httpd_enabled.rc == 0
|
||||
- httpd_running.rc == 0
|
||||
service: name=httpd state=stopped enabled=no
|
||||
- name: Remove openstack-tripleo-ui package if operator requests it
|
||||
yum: name=openstack-tripleo-ui state=removed
|
||||
|
|
Loading…
Reference in New Issue