Add task for VMware provider for install open-vm-tools
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Eric Morino 2022-05-17 15:05:20 +02:00
parent f01f4dece6
commit 19ca65f55f
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
---
- name: Check if the virtual machine on VMWare Host
shell: "dmidecode | grep -q 'VMware'"
check_mode: no
register: vmware_provider
failed_when: False
changed_when: False
tags:
- packages
- name: OpenVM Tools are installed for vmware
apt:
state: present
name: open-vm-tools
tags:
- packages
when: vmware_provider == 0