Yes adding

state: absent 

will uninstall the package.  Something like this:

    - name: remove java 8 if present
      win_package:
        name: "Java SE Development Kit 8 Update 73 (64-bit)"
        path: "c:\\packages\\jdk-8u73-windows-x64.exe"
        product_id: '{64A3A4F4-B792-11D6-A78A-00B0D0180730}'
        state: absent
        arguments: /s /L C:\logs\java8jdk-removal.log


On Wednesday, June 8, 2016 at 10:58:24 PM UTC+1, Bob Tanner wrote:
>
> I'm trying to figure out how to use win_package to uninstall software. The 
> state="absent" would do an uninstall?
>
> It would seem this module can be used only for package installation?
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bc994fad-2f34-49b6-9430-f7dfb09469f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to