Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VPC region/zone update in destroy.yaml #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/simple-vm-ssh/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- name: Fetch the variables from var file
include_vars:
file: vars.yml

- name: Configure VPC
ibm_is_vpc:
name: "{{ name_prefix }}-vpc"
Expand Down
8 changes: 5 additions & 3 deletions examples/simple-vm-ssh/destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@
- name: Release Floating IP
ibm_is_floating_ip:
state: absent
id: "{{ fip.id }}"
id: "{{ fip }}"
when: fip is defined

- name: Remove VSI
ibm_is_instance:
state: absent
id: "{{ vsi.id }}"
id: "{{ vsi }}"
keys: []
when: vsi is defined

- name: Get the ssh Key
ibm_is_ssh_key_info:
name: "{{ name_prefix }}-ssh-key"
region: "{{ zone }}"
register: ssh_key_output

- name: set ssh key in fact
Expand All @@ -39,12 +40,13 @@
- name: Remove VPC Subnet
ibm_is_subnet:
state: absent
id: "{{ subnet.id }}"
id: "{{ subnet }}"
when: subnet is defined

- name: Get the vpc details
ibm_is_vpc_info:
name: "{{ name_prefix }}-vpc"
region: "{{ zone }}"
register: vpc_output

- name: set subnet in fact
Expand Down