make all the when_string be when
This commit is contained in:
parent
874da2220a
commit
f803810449
1 changed files with 3 additions and 3 deletions
|
@ -23,16 +23,16 @@
|
||||||
delegate_to: $vmhost
|
delegate_to: $vmhost
|
||||||
async: 1200
|
async: 1200
|
||||||
poll: 10
|
poll: 10
|
||||||
when_string: inventory_hostname not in result.list_vms
|
when: inventory_hostname not in result.list_vms
|
||||||
|
|
||||||
- name: start the vm up
|
- name: start the vm up
|
||||||
action: virt state=running name=${inventory_hostname}
|
action: virt state=running name=${inventory_hostname}
|
||||||
delegate_to: $vmhost
|
delegate_to: $vmhost
|
||||||
when_string: inventory_hostname not in result.list_vms
|
when: inventory_hostname not in result.list_vms
|
||||||
|
|
||||||
- name: wait for ssh on the vm to start back
|
- name: wait for ssh on the vm to start back
|
||||||
local_action: wait_for delay=10 host=${inventory_hostname} port=22 state=started timeout=1200
|
local_action: wait_for delay=10 host=${inventory_hostname} port=22 state=started timeout=1200
|
||||||
when_string: inventory_hostname not in result.list_vms
|
when: inventory_hostname not in result.list_vms
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue