From 427e54164dd1369502aaca8993ec24671e192913 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Tue, 5 Nov 2019 14:12:30 +0100 Subject: [PATCH] Do not run rendering all_nodes data as group_vars in check mode We don't want to run the "Render all_nodes data as group_vars for overcloud" tasks in check mode, since it relies on the command "whoami"; which doesn't execute in check mode. Change-Id: Ia8df4794fcf8eff9a2d5a8a7e99e0e5ebf1f8e1f --- common/deploy-steps.j2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/deploy-steps.j2 b/common/deploy-steps.j2 index d31ab51c49..0f65b15172 100644 --- a/common/deploy-steps.j2 +++ b/common/deploy-steps.j2 @@ -427,6 +427,7 @@ outputs: delegate_to: localhost become: false run_once: true + when: not ansible_check_mode|bool block: - name: Get current user command: whoami @@ -910,6 +911,7 @@ outputs: delegate_to: localhost become: false run_once: true + when: not ansible_check_mode|bool block: - name: Get current user command: whoami @@ -1014,6 +1016,7 @@ outputs: delegate_to: localhost become: false run_once: true + when: not ansible_check_mode|bool block: - name: Get current user command: whoami @@ -1121,6 +1124,7 @@ outputs: delegate_to: localhost become: false run_once: true + when: not ansible_check_mode|bool block: - name: Get current user command: whoami @@ -1197,6 +1201,7 @@ outputs: delegate_to: localhost become: false run_once: true + when: not ansible_check_mode|bool block: - name: Get current user command: whoami @@ -1329,6 +1334,7 @@ outputs: delegate_to: localhost become: false run_once: true + when: not ansible_check_mode|bool block: - name: Get current user command: whoami @@ -1459,6 +1465,7 @@ outputs: delegate_to: localhost become: false run_once: true + when: not ansible_check_mode|bool block: - name: Get current user command: whoami