Debian Codegraph @

ansible_collections/google/cloud/tests/integration/targets/connection_plugin/playbooks/teardown.yml

raw symbols SCIP
1 ---
2 - name: Teardown test suite
3 hosts: localhost
4 connection: local
5 gather_facts: false
6 vars_files:
7 - ../vars.yml
8 environment:
9 GCP_SERVICE_ACCOUNT_FILE: "{{ gcp_cred_file }}"
10 GCP_AUTH_KIND: "{{ gcp_cred_kind }}"
11 GCP_PROJECT: "{{ gcp_project }}"
12 tasks:
13 - name: TEARDOWN | Destroy instances # noqa: ignore-errors
14 google.cloud.gcp_compute_instance:
15 name: "{{ prefix }}-{{ item.name }}"
16 machine_type: "{{ gcp_machine_type }}"
17 zone: "{{ gcp_zone }}"
18 state: absent
19 loop: "{{ sut }}"
20 ignore_errors: true
21
22 - name: TEARDOWN | Remove IAP firewall rule # noqa: ignore-errors
23 google.cloud.gcp_compute_firewall:
24 name: all-iap
25 state: absent
26 network:
27 selfLink: "networks/{{ prefix }}"
28 ignore_errors: true
29
30 - name: TEARDOWN | Destroy network # noqa: ignore-errors
31 google.cloud.gcp_compute_network:
32 name: "{{ prefix }}"
33 state: absent
34 ignore_errors: true