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