We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f555c23 commit 58ab5b6Copy full SHA for 58ab5b6
ansible/roles/destroy-vm/tasks/destroy-s390x-vm.yml
@@ -1,14 +1,7 @@
1
-- name: Get host name
2
- shell: hostname
3
- register: hostname
4
-
5
-- debug:
6
- var: hostname
7
8
- name: Check for existing VSI
9
delegate_to: localhost
10
ibm.cloudcollection.ibm_is_instance_info:
11
- name: "{{ hostname.stdout }}"
+ name: "{{ inventory_hostname }}"
12
failed_when:
13
- vsi.rc != 0
14
- '"No Instance found" not in vsi.stderr'
@@ -31,7 +24,7 @@
31
24
- name: Check for existing floating IP
32
25
33
26
ibm.cloudcollection.ibm_is_floating_ip_info:
34
- name: "{{ hostname.stdout }}-fip"
27
+ name: "{{ inventory_hostname }}-fip"
35
28
36
29
- fip.rc != 0
37
30
- '"No floatingIP found" not in fip.stderr'
0 commit comments