1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/roles/test_gce_labels/tasks/teardown.yml
2017-07-25 09:36:33 -04:00

18 lines
537 B
YAML

# GCE Labels Teardown.
# ============================================================
- name: "Teardown instance used in gce_labels test"
gce:
instance_names: "{{ instance_name }}"
zone: "{{ zone }}"
project_id: "{{ project_id }}"
pem_file: "{{ pem_file }}"
service_account_email: "{{ service_account_email }}"
state: absent
register: result
- name: assert VM removed
assert:
that:
- 'result.changed'
- 'result.instance_names[0] == "{{ instance_name }}"'
- 'result.state == "absent"'