Skip to content

Commit 3fe9e0a

Browse files
committed
Fix libvirt-vm role for ansible 2.3
1 parent 6c62d93 commit 3fe9e0a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tasks/vm.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
command: define
66
xml: "{{ lookup('template', 'vm.xml.j2') }}"
77

8-
- name: Ensure the VM is running
8+
- name: Ensure the VM is running and started at boot
99
virt:
1010
name: "{{ libvirt_vm_name }}"
11+
autostart: true
1112
state: running
12-
13-
- name: Ensure the VM is started at boot
14-
virt:
15-
name: "{{ libvirt_vm_name }}"
16-
command: autostart

0 commit comments

Comments
 (0)