diff options
Diffstat (limited to 'test/integration/targets/gcp_storage_bucket_access_control/tasks/main.yml')
-rw-r--r-- | test/integration/targets/gcp_storage_bucket_access_control/tasks/main.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/integration/targets/gcp_storage_bucket_access_control/tasks/main.yml b/test/integration/targets/gcp_storage_bucket_access_control/tasks/main.yml index b9b9e763b0..c4a28f0c85 100644 --- a/test/integration/targets/gcp_storage_bucket_access_control/tasks/main.yml +++ b/test/integration/targets/gcp_storage_bucket_access_control/tasks/main.yml @@ -15,7 +15,7 @@ # Pre-test setup - name: create a bucket gcp_storage_bucket: - name: "bucket-bac" + name: "{{ resource_name }}" project: "{{ gcp_project }}" auth_kind: "{{ gcp_cred_kind }}" service_account_file: "{{ gcp_cred_file }}" @@ -96,11 +96,13 @@ - result.has_key('kind') == False #--------------------------------------------------------- # Post-test teardown +# If errors happen, don't crash the playbook! - name: delete a bucket gcp_storage_bucket: - name: "bucket-bac" + name: "{{ resource_name }}" project: "{{ gcp_project }}" auth_kind: "{{ gcp_cred_kind }}" service_account_file: "{{ gcp_cred_file }}" state: absent register: bucket + ignore_errors: true |