From a0c3612db836343143b8ebd160710216203dfc8a Mon Sep 17 00:00:00 2001 From: Sofer Athlan-Guyot Date: Mon, 18 Feb 2019 14:38:37 +0100 Subject: [PATCH] [FFU] Make sure group access work correctly with ansible 2.6. Hi, with ansible 2.6 we cannot access the groups variable using the previous idiom anymore. Use a more robust way to access that variable. Co-Authored-By: "Lukas Bezdicka " Change-Id: I26f97e7fc4da0dd19e1e8a19b3f6a1c1160f7466 Closes-bug: #1816422 --- 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 079f5eb22a..aa371a4835 100644 --- a/common/deploy-steps.j2 +++ b/common/deploy-steps.j2 @@ -834,7 +834,7 @@ outputs: fast_forward_upgrade_bootstrap_role_tasks: | {%- for role in roles %} - include_tasks: {{role.name}}/fast_forward_upgrade_tasks.yaml - when: tripleo_role_name == '{{role.name}}' and ansible_hostname == {{role.name}}[0] + when: tripleo_role_name == '{{role.name}}' and ansible_hostname == groups['{{role.name}}'][0] {%- endfor %} post_update_steps_tasks: | {%- for role in roles %}