From 49a3d13efd3a7179ae4b9c3284bb58aab3866a26 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Wed, 20 May 2020 16:02:44 -0400 Subject: [PATCH] Fix dry-run for "remote copy deployment file" task This was missing in the last attempt to make that playbook working in check mode. Change-Id: I2de91a2b06fade9969eb294d576bb33bc2d2bff3 --- tripleo_common/templates/deployments.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripleo_common/templates/deployments.yaml b/tripleo_common/templates/deployments.yaml index e7ca7d0ad..ba83dea46 100644 --- a/tripleo_common/templates/deployments.yaml +++ b/tripleo_common/templates/deployments.yaml @@ -144,7 +144,7 @@ content: "[ {{ deployment_content.content | b64decode | from_yaml | json_query(item_only) }} ]" dest: "/var/lib/heat-config/tripleo-config-download/{{ item ~ '-' ~ deployment_uuid }}" when: - - deployment_content is defined + - not ansible_check_mode|bool - name: "Check if deployed file exists for {{ item }}" stat: