From 2808f726dacb60e58c289c18a91258e0526705a3 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Wed, 1 Oct 2014 15:32:59 -0700 Subject: WIP Infra - Refactor terminate * remove persistent disks from images --- playbooks/gce/origin-minion/terminate.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'playbooks/gce/origin-minion/terminate.yml') diff --git a/playbooks/gce/origin-minion/terminate.yml b/playbooks/gce/origin-minion/terminate.yml index d31f175e1..97b31eca0 100644 --- a/playbooks/gce/origin-minion/terminate.yml +++ b/playbooks/gce/origin-minion/terminate.yml @@ -28,12 +28,14 @@ - 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 + -- cgit v1.2.3