From 6ed93e3afbc14e637a9823fb4443f5f1e46f7f65 Mon Sep 17 00:00:00 2001 From: Larry Smith Jr Date: Sun, 27 Aug 2017 09:03:38 -0400 Subject: [PATCH] Fixed VM Autostart 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 --- tasks/config_vms.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/config_vms.yml b/tasks/config_vms.yml index a6e078a..74c83d3 100644 --- a/tasks/config_vms.yml +++ b/tasks/config_vms.yml @@ -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: > @@ -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: >