bugfix: Auswurf der cidata.iso
This commit is contained in:
parent
00623c7f0c
commit
f00a20491a
@ -71,23 +71,33 @@
|
|||||||
shell:
|
shell:
|
||||||
cmd: "ping -c 2 {{ ansible_host }}"
|
cmd: "ping -c 2 {{ ansible_host }}"
|
||||||
register: pingcmd
|
register: pingcmd
|
||||||
retries: 12
|
retries: 11
|
||||||
delay: 10
|
delay: 10
|
||||||
until: pingcmd.rc == 0
|
until: pingcmd.rc == 0
|
||||||
|
|
||||||
# CLOUD-INIT CLEANUP
|
# CLOUD-INIT CLEANUP
|
||||||
|
|
||||||
- name: detach CI from vm
|
|
||||||
delegate_to: "{{ virt.host }}"
|
|
||||||
shell:
|
|
||||||
cmd: virsh change-media "{{ inventory_hostname }}" sda --eject
|
|
||||||
|
|
||||||
- name: shutdown VM
|
- name: shutdown VM
|
||||||
delegate_to: "{{ virt.host }}"
|
delegate_to: "{{ virt.host }}"
|
||||||
virt:
|
virt:
|
||||||
name: "{{ inventory_hostname }}"
|
name: "{{ inventory_hostname }}"
|
||||||
state: shutdown
|
state: shutdown
|
||||||
|
|
||||||
|
- name: wait for shutdown
|
||||||
|
delegate_to: "{{ virt.host }}"
|
||||||
|
virt:
|
||||||
|
name: "{{ inventory_hostname }}"
|
||||||
|
command: status
|
||||||
|
register: vmstate
|
||||||
|
retries: 11
|
||||||
|
delay: 10
|
||||||
|
until: vmstate.status == "shutdown"
|
||||||
|
|
||||||
|
- name: detach CI from vm
|
||||||
|
delegate_to: "{{ virt.host }}"
|
||||||
|
shell:
|
||||||
|
cmd: virsh change-media "{{ inventory_hostname }}" sda --eject --config
|
||||||
|
|
||||||
- name: delete CI temp dir
|
- name: delete CI temp dir
|
||||||
delegate_to: "{{ virt.host }}"
|
delegate_to: "{{ virt.host }}"
|
||||||
file:
|
file:
|
||||||
|
Loading…
Reference in New Issue
Block a user