- name: Verify Installer hosts: windows_vm tasks: - name: Create Workspace ansible.windows.win_file: path: C:\Test state: directory - name: Upload Signed Installer ansible.windows.win_copy: src: ./dist/installer_signed.exe dest: C:\Test\installer.exe - name: Install (Silent Mode) ansible.windows.win_command: C:\Test\installer.exe /S register: install_result - name: Verify Executable Exists ansible.windows.win_stat: path: "C:\\Program Files\\MyApp\\app.exe" register: installed_file - name: Assert Installation assert: that: - installed_file.stat.exists