Fix bogus reference to conditional in octavia upgrade tasks

Adds a fact to take the value of the EnableInternalTLS heat parameter so
it can be used in ansible upgrade tasks.

Change-Id: I9e52ece33a131fbcec64d96d3c9c273f98ccb284
Closes-Bug: #1836729
(cherry picked from commit 430cb55920)
(cherry picked from commit 9f239f8c80)
This commit is contained in:
Brent Eagles 2019-07-25 10:10:52 -02:30 committed by Carlos Goncalves
parent 2780674463
commit 00a76438f3
1 changed files with 6 additions and 0 deletions

View File

@ -211,6 +211,9 @@ outputs:
/var/log/containers/octavia and /var/log/containers/httpd/octavia-api.
ignore_errors: true
update_tasks:
- name: Set internal tls variable
set_fact:
internal_tls_enabled: {get_param: EnableInternalTLS}
- name: remove TLS proxy if configured and running
when:
- step|int == 2
@ -219,6 +222,9 @@ outputs:
name: octavia_api_tls_proxy
state: absent
upgrade_tasks:
- name: Set internal tls variable
set_fact:
internal_tls_enabled: {get_param: EnableInternalTLS}
- when: step|int == 0
tags: common
block: