From 337e4514203a13ae7368ff76485ad55ebfd01a1c Mon Sep 17 00:00:00 2001 From: Mathieu Bultel Date: Tue, 24 Sep 2019 13:38:00 +0200 Subject: [PATCH] Use update_serial as an ansible variable Use update_serial as ansible variable for being able to override the value with CLI or ansible-playbook command line. This should result as the following: at the heat level: * if no update_serial in the roles_data is provided, the default value is 1 * if update_serial is provided by the roles_data, the default value for the ansible var is the one in the roles_data. * if ansible-playbook -e update_serial= , the serial value is the one provided by the CLI. Change-Id: Id4a6326977bebba56c3da2dbf3c4113b6658d433 (cherry picked from commit c6cd605781aef93516732dc85e8b63afb104aea4) --- common/deploy-steps.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/deploy-steps.j2 b/common/deploy-steps.j2 index b21a17d099..3ee99a19e4 100644 --- a/common/deploy-steps.j2 +++ b/common/deploy-steps.j2 @@ -560,7 +560,7 @@ outputs: {%- for role in roles %} - hosts: {{role.name}} name: Run update - serial: {{ role.update_serial | default(1) }} + serial: {{ '"{{' }} update_serial | default({{role.update_serial | default(1)}}) {{ '}}"' }} gather_facts: no vars: tripleo_minor_update: true