| # Install TightVNC server. |
| - hosts: all |
| tasks: |
| - name: Create Temp |
| win_file: |
| path: c:\Temp |
| state: directory |
| - name: Copy the TightVNC MSI to the host |
| win_copy: |
| src: "{{ win_package_src }}/tightvnc-2.8.11-gpl-setup-64bit.msi" |
| dest: c:\Temp\tightvnc.msi |
| - name: Install TightVNC |
| win_package: |
| path: c:\Temp\tightvnc.msi |
| # https://www.tightvnc.com/doc/win/TightVNC_2.7_for_Windows_Installing_from_MSI_Packages.pdf |
| arguments: SET_PASSWORD=1 VALUE_OF_PASSWORD={{ ansible_password }} |
| state: present |
| - name: Cleanup |
| win_file: |
| path: c:\Temp\tightvnc.msi |
| state: absent |