From 2bebcc16a30d0dcf3bf5553ad612d8df82b02d86 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Tue, 1 May 2018 11:47:57 +0200 Subject: [PATCH] common: install qemu-agent on VMs --- group_vars/all | 2 ++ host_vars/bacon.binary.kitchen | 2 ++ roles/common/tasks/Debian.yml | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/group_vars/all b/group_vars/all index 54abf5b..cc16370 100644 --- a/group_vars/all +++ b/group_vars/all @@ -64,3 +64,5 @@ racktables_dbpass: chee6iechuz1EghuheiD snmp_allowed: - 172.23.2.5 - 172.23.2.6 + +virtual_machine: true diff --git a/host_vars/bacon.binary.kitchen b/host_vars/bacon.binary.kitchen index aa0b7f6..1dc6e13 100644 --- a/host_vars/bacon.binary.kitchen +++ b/host_vars/bacon.binary.kitchen @@ -10,3 +10,5 @@ ntp_peers: slapd_hostname: ldap1.binary.kitchen slapd_role: slave + +virtual_machine: false diff --git a/roles/common/tasks/Debian.yml b/roles/common/tasks/Debian.yml index b488e81..e1ae82b 100644 --- a/roles/common/tasks/Debian.yml +++ b/roles/common/tasks/Debian.yml @@ -35,6 +35,10 @@ - vim-nox - zsh +- name: Install qemu-agent on VMs + apt: name=qemu-guest-agent + when: virtual_machine == true + - name: Configure misc software copy: src={{ item.src }} dest={{ item.dest }} with_items: