mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
537 B
YAML
19 lines
537 B
YAML
8 years ago
|
# 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"'
|