fix up virt instance create autostart

This commit is contained in:
Kevin Fenzi 2017-05-14 04:36:36 +00:00
parent 6c961cfbe3
commit 972c651295

View file

@ -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