summaryrefslogtreecommitdiffstats
path: root/playbooks/gce/os3-minion/terminate.yml
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/gce/os3-minion/terminate.yml')
-rw-r--r--playbooks/gce/os3-minion/terminate.yml17
1 files changed, 9 insertions, 8 deletions
diff --git a/playbooks/gce/os3-minion/terminate.yml b/playbooks/gce/os3-minion/terminate.yml
index d31f175e1..0c7a2f55e 100644
--- a/playbooks/gce/os3-minion/terminate.yml
+++ b/playbooks/gce/os3-minion/terminate.yml
@@ -28,12 +28,13 @@
- debug: var=gce
-# - name: Remove disks of instances
-# gce_pd:
-# service_account_email: "{{ gce_service_account_email }}"
-# pem_file: "{{ gce_pem_file }}"
-# project_id: "{{ gce_project_id }}"
-# name: "{{ item }}"
-# state: deleted
-# with_items: gce.instance_names
+ - name: Remove disks of instances
+ gce_pd:
+ service_account_email: "{{ gce_service_account_email }}"
+ pem_file: "{{ gce_pem_file }}"
+ project_id: "{{ gce_project_id }}"
+ name: "{{ item }}"
+ zone: "{{ gce.zone }}"
+ state: absent
+ with_items: gce.instance_names