Use the state value preferred by ansible here.
Ansible tells me: value of state must be one of: running,shutdown,destroyed,paused, got: started
This commit is contained in:
parent
351bf21672
commit
f5ba41e0db
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@
|
|||
- armv7-kernel
|
||||
|
||||
- name: start the vm up
|
||||
virt: state=started name={{ inventory_hostname }}
|
||||
virt: state=running name={{ inventory_hostname }}
|
||||
delegate_to: "{{ vmhost }}"
|
||||
when: inventory_hostname not in result.list_vms
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue