Add install .exe playbook
This commit is contained in:
17
windows/install_exe.yml
Normal file
17
windows/install_exe.yml
Normal 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
|
||||
Reference in New Issue
Block a user