You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
442 B
16 lines
442 B
---
|
|
|
|
- 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'
|
|
|