I'm unable to uninstall notepad++ in the Windows host:

- name: uninstall notepad++
  win_package:
    path: '{{ notepadpp_install_dir }}\uninstall.exe'
    product_id: 'Notepad++*'
    arguments: /S
    state: present

- name: uninstall notepad++ 
win_command: powershell.exe -ExecutionPolicy ByPass -File D:\un.ps1
 args:
   stdin: get-package notepad++* | % { & 
$_.Meta.Attributes["UninstallString"] /S}

Every time I'm seeing the change but nothing happened on the host. can some 
please advise and help.

I'm using service account for this but able to install without any incident.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f392b993-c7ee-4f70-8815-f6913784cd66%40googlegroups.com.

Reply via email to