Hello,

I've found that I need to become administrator for some chocolatey package 
installations, even when my domain user is member of local administrators 
group.

To do so, I run:

tasks:
  # - win_ping:
  - name: become test
    win_shell: whoami
    become: true
    become_user: administrator
    become_method: runas

This works but I need to enter the administrator password.
However, when I use "run as administrator" from the desktop, I only need to 
acknowledge the security dialogue *without giving the admin password*.

Is this working as designed, or do I need some special privileges?
What's your experience with become_method: runas?
Any ideas how to achieve something sudo-like under windows without sharing 
the local admin password?



Best Regards
Benjamin

-- 
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/356097cc-2c1e-4bda-b125-cc29e3c89981%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to