I'm probably trying to do something stupid, but I have been writing roles to install applications via WinGet (Windows package manager) and via ansible.windows.win_command
. I am on WSL2 (Ubuntu) connecting to Windows 10 on the same computer. This is working for the most part, but some roles are returning error which I think I have fixed with ignore_errors: yes
.
However, I think some are launching error dialogs even when running WinGet in silent mode and as the application installer is waiting on user input, the task never completes. Should I use async and poll or what can I do? I am mostly interested in having as many applications installed via WinGet via Ansible until there is WinGet support. If a role fails I can install via WinGet manually, but I want the playbook with all the roles to run to the end at least.