mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-19 03:33:17 +02:00
17 lines
442 B
YAML
17 lines
442 B
YAML
![]() |
---
|
||
|
|
||
|
- name: Check if qemu agent channel is available
|
||
|
stat: path=/dev/virtio-ports/org.qemu.guest_agent.0
|
||
|
register: qemu_ga_dev
|
||
|
|
||
|
- include: guest_{{ ansible_os_family }}.yml
|
||
|
when:
|
||
|
- qemu_ga_dev.stat.exists
|
||
|
- ansible_virtualization_type == 'kvm'
|
||
|
|
||
|
- name: Start and enable qemu guest agent
|
||
|
service: name=qemu-guest-agent state=started enabled=yes
|
||
|
when:
|
||
|
- qemu_ga_dev.stat.exists
|
||
|
- ansible_virtualization_type == 'kvm'
|