diff --git a/group_vars/all b/group_vars/all index cc16370..54abf5b 100644 --- a/group_vars/all +++ b/group_vars/all @@ -64,5 +64,3 @@ 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 1dc6e13..aa0b7f6 100644 --- a/host_vars/bacon.binary.kitchen +++ b/host_vars/bacon.binary.kitchen @@ -10,5 +10,3 @@ 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 e1ae82b..99001ef 100644 --- a/roles/common/tasks/Debian.yml +++ b/roles/common/tasks/Debian.yml @@ -35,9 +35,9 @@ - vim-nox - zsh -- name: Install qemu-agent on VMs +- name: Install qemu-agent on KVM VMs apt: name=qemu-guest-agent - when: virtual_machine == true + when: ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm" - name: Configure misc software copy: src={{ item.src }} dest={{ item.dest }}