From b0b609de46eced977d498aab19389384998d7dd2 Mon Sep 17 00:00:00 2001 From: Domenik Bildhauer Date: Tue, 31 Dec 2024 18:25:21 +0100 Subject: [PATCH] Add install .exe playbook --- windows/install_exe.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 windows/install_exe.yml 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