Hi All,

This is a basic question as I'm just getting started with Ansible. I've got 
this working perfectly on our Linux distributions but not on Windows.

Our environment dictates we need UAC enabled and we cannot use the built in 
administrator account for day to day activities. With ansible some of the 
modules work perfectly. However I'm having an issue with the modules such 
as win_msi that effectively need elevated permissions within UAC to "runas" 
administrator. If I run win_msi as the actual administrator (edit the 
ssh_user as the actual local administrator) then it works fine. But 
switching to either a domain user or a local user that's added to the local 
administrators group fails with access denied. Running the same command on 
the server requires me to either run the command in an elevated window or 
accept the prompts to install as administrator. WinRM is working as 
expected as I can perform tasks that don't require elevated permissions 
perfectly with the domain or local user.

Does ansible have any way around this? I see from the notes that at some 
point "runas" is going to be enabled for windows, I guess this might be 
when powershell starts to support SSH?

But if anyone has any advice then this would be greatly appreciated.

Thanks

Marc

-- 
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/ffb250d5-6cc8-4bca-8c35-3a398b673688%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to