From 378f74ed4ab52a009ecede41fa5914503c1103ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=20Gl=C3=A4=C3=9F-St=C3=B6cker?= Date: Thu, 6 Oct 2022 09:29:00 +0200 Subject: [PATCH] install qemu guest agent if is_vm var is set to true --- tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 16221a1..3dd4edb 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -22,3 +22,9 @@ - iotop - lshw - slurm + + - name: Install qemu-guest-agent if host is qemu-based virtual machine + apt: + name: qemu-guest-agent + state: present + when: is_vm | default('False') == True \ No newline at end of file