From 544245ed84b2f87247bd604e7c16a242d9998bb1 Mon Sep 17 00:00:00 2001 From: Alina Buzachis Date: Wed, 13 Dec 2023 15:13:31 +0100 Subject: [PATCH] Update create.yml --- roles/manage_machine_image/tasks/create.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/manage_machine_image/tasks/create.yml b/roles/manage_machine_image/tasks/create.yml index e1d50aa..a44ece8 100644 --- a/roles/manage_machine_image/tasks/create.yml +++ b/roles/manage_machine_image/tasks/create.yml @@ -46,7 +46,10 @@ - name: Set 'manage_machine_image__source' ansible.builtin.set_fact: - manage_machine_image__source: "{{ [manage_machine_image__source_disk_info.resources, manage_machine_image__source_snapshot_info.resources, manage_machine_image__source_image_info.resources] | reject('undefined') | join(',') }}" + manage_machine_image__source: > + "{{ [manage_machine_image__source_disk_info.resources, manage_machine_image__source_snapshot_info.resources, + manage_machine_image__source_image_info.resources] + | reject('undefined') | join(',') }}" - name: Verify if the machine image already exists google.cloud.gcp_compute_image_info: