Skip to content

Commit

Permalink
Fixed VM Autostart
Browse files Browse the repository at this point in the history
Previously used kvm state as part of setting the autostart policy, this
was not working correctly as it was just checking to validate the state
of the VM. Now we use command: info which seems to work in regards to
setting the VM autostart policy.

Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.com>
  • Loading branch information
mrlesmithjr committed Aug 27, 2017
1 parent 5f8e367 commit 6ed93e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/config_vms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
virt:
name: "{{ item['name'] }}"
autostart: "{{ item['autostart']|default(omit) }}"
state: "{{ item['state'] }}"
command: "info"
become: true
with_items: '{{ kvm_vms }}'
when: >
Expand All @@ -76,7 +76,7 @@
virt:
name: "{{ item['name'] }}"
autostart: "{{ item['autostart']|default(omit) }}"
state: "{{ item['state'] }}"
command: "info"
become: true
with_items: '{{ kvm_vms }}'
when: >
Expand Down

0 comments on commit 6ed93e3

Please sign in to comment.