Use KVM/Spice agent when applicable

This commit is contained in:
Ryan Cavicchioni 2019-10-27 18:38:13 -05:00
parent 341a1a94b8
commit d07e73ac4c
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
4 changed files with 20 additions and 20 deletions

View File

@ -1,4 +1,8 @@
---
vm_guest_agent_package_state: present
vm_guest_agent_service_state: started
vm_guest_agent_service_enabled: yes
vm_guest_qemu_agent_package_state: present
vm_guest_qemu_agent_service_state: started
vm_guest_qemu_agent_service_enabled: yes
vm_guest_spice_agent_package_state: present
vm_guest_spice_agent_service_state: started
vm_guest_spice_agent_service_enabled: yes

View File

@ -1,4 +1,15 @@
---
- name: install guest agent
package:
name: "{{ vm_guest_qemu_agent_package_name }}"
state: "{{ vm_guest_qemu_agent_package_state }}"
- name: start guest agent
service:
name: "{{ vm_guest_qemu_agent_service_name }}"
state: "{{ vm_guest_qemu_agent_service_state }}"
enabled: "{{ vm_guest_qemu_agent_service_enabled }}"
- name: install SPICE agent
package:
name: "{{ vm_guest_spice_agent_package_name }}"

View File

@ -11,17 +11,6 @@
with_first_found:
"{{ ansible_virtualization_type }}.yaml"
- name: install guest agent
package:
name: "{{ vm_guest_agent_package_name }}"
state: "{{ vm_guest_agent_package_state }}"
- name: start guest agent
service:
name: "{{ vm_guest_agent_service_name }}"
state: "{{ vm_guest_agent_service_state }}"
enabled: "{{ vm_guest_agent_service_enabled }}"
- name: run virtualization specific tasks
include: "{{ item }}"
with_first_found:

View File

@ -1,10 +1,6 @@
---
vm_guest_agent_package_name: qemu-guest-agent
vm_guest_agent_service_name: qemu-guest-agent
vm_guest_qemu_agent_package_name: qemu-guest-agent
vm_guest_qemu_agent_service_name: qemu-guest-agent
vm_guest_spice_agent_package_name: spice-vdagent
vm_guest_spice_agent_service_name: spice-vdagent
vm_guest_spice_agent_package_state: present
vm_guest_spice_agent_service_state: started
vm_guest_spice_agent_service_enabled: yes