Add task for VMware provider for install open-vm-tools
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f01f4dece6
commit
19ca65f55f
17
evolinux-base/tasks/provider_vmware.yml
Normal file
17
evolinux-base/tasks/provider_vmware.yml
Normal 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
|
Loading…
Reference in a new issue