Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (17 sloc) 724 Bytes
- name: Install VMWare Tools
hosts: sles
gather_facts: false
remote_user: root
tasks:
- name: Mount VMware Tools disk (/dev/cdrom1) - must attach it first
mount: src=/dev/cdrom1 fstype=iso9660 name=/media state=mounted
- command: find /media/ -name "*.tar.gz"
register: vmwaretools_gzip
- name: Extract VMware Tools package
unarchive: copy=no dest=/tmp/ src={{ vmwaretools_gzip.stdout }}
- name: Start VMware Tools installation
command: /tmp/vmware-tools-distrib/vmware-install.pl -d
- name: Umount CD-ROM (/dev/cdrom1)
mount: src=/dev/cdrom1 fstype=iso9660 name=/media state=unmounted
- name: Clear installation files
file: path=/tmp/vmware-tools-distrib state=absent