fix up virt instance create autostart
This commit is contained in:
parent
6c961cfbe3
commit
972c651295
1 changed files with 2 additions and 7 deletions
|
@ -65,8 +65,8 @@
|
|||
tags:
|
||||
- armv7-kernel
|
||||
|
||||
- name: start the vm up
|
||||
virt: state=running name={{ inventory_hostname }}
|
||||
- name: start the vm up and set it to autostart
|
||||
virt: state=running name={{ inventory_hostname }} autostart=True
|
||||
delegate_to: "{{ vmhost }}"
|
||||
when: inventory_hostname not in result.list_vms
|
||||
|
||||
|
@ -76,11 +76,6 @@
|
|||
tags:
|
||||
- armv7-kernel
|
||||
|
||||
- name: set it to autostart
|
||||
virt: autostart=True name={{ inventory_hostname }}
|
||||
delegate_to: "{{ vmhost }}"
|
||||
when: inventory_hostname not in result.list_vms
|
||||
|
||||
- name: make sure there is no old ssh host key for the host still around
|
||||
local_action: known_hosts path={{item}} host={{ inventory_hostname }} state=absent
|
||||
ignore_errors: True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue