18 lines
525 B
YAML
18 lines
525 B
YAML
---
|
|
- name: Install .exe file on Windows
|
|
hosts: windows
|
|
tasks:
|
|
- name: Copy .exe to the remote Windows host
|
|
win_copy:
|
|
src: path/to/your-installer.exe
|
|
dest: C:\Temp\your-installer.exe
|
|
|
|
- name: Install the software using the .exe file
|
|
win_shell: |
|
|
Start-Process -FilePath "C:\Temp\your-installer.exe" -ArgumentList '/S','/v','/qn' -PassThru -Wait
|
|
|
|
- name: Remove the installer after installation
|
|
win_file:
|
|
path: C:\Temp\your-installer.exe
|
|
state: absent
|