Add install .exe playbook

This commit is contained in:
Domenik Bildhauer
2024-12-31 18:25:21 +01:00
parent 73b3445008
commit b0b609de46

17
windows/install_exe.yml Normal file
View File

@@ -0,0 +1,17 @@
---
- 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