Use KVM/Spice agent when applicable
This commit is contained in:
parent
341a1a94b8
commit
d07e73ac4c
@ -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
|
||||
|
@ -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 }}"
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user