tripleo-quickstart-extras/roles/overcloud-deploy/templates/overcloud_roles.yaml.j2
Raoul Scarazzini e3ab79ee84 Fix default value for overcloud_roles
This commit prevent errors like [1] that you'll get when you don't
define the "overcloud_roles" variable while declaring instead:

composable_roles: true
generate_overcloud_roles: "Controller ComputeInstanceHA"

ansible will process the template in any case, despite the when condition
turning false, making the task fail.

[1] "AnsibleUndefinedVariable: 'overcloud_roles' is undefined

Change-Id: I5218c6b65e62d58a2346e95026c1ca2fb4f0d8f9
2018-08-24 12:18:26 +00:00

2 lines
51 B
Django/Jinja

{{ overcloud_roles | default('') | to_nice_yaml }}