projects
/
noc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge PR#66: VM bootstraping improvements
[noc.git]
/
ansible
/
roles
/
vm
/
define
/
tasks
/
main.yml
diff --git
a/ansible/roles/vm/define/tasks/main.yml
b/ansible/roles/vm/define/tasks/main.yml
index
afe7e92
..
202644d
100644
(file)
--- a/
ansible/roles/vm/define/tasks/main.yml
+++ b/
ansible/roles/vm/define/tasks/main.yml
@@
-24,7
+24,7
@@
command: undefine
command: undefine
-- name: redefine vm
+- name: define vm
virt:
command: define
xml: "{{ lookup('template', 'libvirt-domain.xml.j2') }}"
virt:
command: define
xml: "{{ lookup('template', 'libvirt-domain.xml.j2') }}"
@@
-43,8
+43,7
@@
timeout: 10
- name: mark vm as autostarted
timeout: 10
- name: mark vm as autostarted
- when: vm_define_autostart | bool
virt:
name: "{{ hostname }}"
virt:
name: "{{ hostname }}"
- autostart: yes
+ autostart: "{{ vm_define_autostart }}"
command: info ## virt module needs either command or state
command: info ## virt module needs either command or state