mirror of https://github.com/ansible/ansible.git
win_chocolatey: Perform exact presence check (#23098)
The current implementation matches libreoffice-oldstable when testing for libreoffice. So uninstalling libreoffice fails when libreoffice-oldstable is installed. ``` PS C:\WINDOWS\system32> choco list --local-only libreoffice Chocolatey v0.10.3 libreoffice-oldstable 5.2.6 1 packages installed. PS C:\WINDOWS\system32> choco list --local-only --exact libreoffice Chocolatey v0.10.3 0 packages installed. ``` The solution is easy, just add `--exact`.pull/22217/merge
parent
6bad4e57bd
commit
0715430829
Loading…
Reference in New Issue