diff --git a/windows/install_exe.yml b/windows/install_exe.yml new file mode 100644 index 0000000..7bc4200 --- /dev/null +++ b/windows/install_exe.yml @@ -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