So just to sum up:
Ansible-->srv01: You can list stuff in \\srv01\ but not \\srv02

Are you connecting to srv01 from ansible using a domain account or a local 
account? If local it's pretty logical that you have this issue: The user 
doesn't have any permissions outside srv01, so that's the only thing you 
can see.

For cross-machine boundaries you need to connect using a domain account. Or 
you can write an Ansible module which takes username/password as a 
parameter and pass that in (look at the PR for win_package in the 
"ansible-modules-extras" repo on githug, it has the functionality to get 
files from a unc share using explicitly defined credentials.

On Thursday, June 18, 2015 at 10:14:02 PM UTC+2, [email protected] wrote:

> Event log is empty, and there is no difference between those 2 servers, 
> firewall is disabled either.
> And anyway, the script is executed with domain admin rights.
> The weird thing is that i can execute the get-childitem \\srv02\share02 
> from any machine (including srv01), but not ansible. 
>
> Initially the purpose of the script was to copy a file from \\srv01 to 
> \\srv02, but as i've got Access Denied, i decided to run easier command 
> like gci.
> Any help/workaround appreciated.
> Thx.
>
> On Thursday, June 18, 2015 at 9:54:12 PM UTC+2, J Hawkesworth wrote:
>>
>> If it is working on \\srv01\ but not on \\srv02 then there is a 
>> difference between the two machines.
>>
>> I suggest you check the event log on \\srv02, the configuration of the 
>> share02 sharing and the firewall on \\srv02 
>>
>> If you are not using Active Directory domain user, also check the same 
>> username and password is set up on \\svr02 as \\svr01
>>
>> Hope this helps,
>>
>> Let us know how you get on.
>>
>> Jon
>>
>> On Thursday, June 18, 2015 at 7:31:38 PM UTC+1, [email protected] wrote:
>>>
>>> Hi @all,
>>>>
>>> I have almost identical issue.
>>> I am running powershell script on srv01:
>>> get-childitem \\srv01\share01
>>> get-childitem \\srv02\share02
>>> The first one is executing without issues, but on second one i am 
>>> receiving Access Denied.
>>> It doesn't look like double hop trouble, but anyway just in case i've 
>>> enabled PSRemoting and Enable-WsmanCredSSP just in case.
>>>
>>>

-- 
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/1fbe04cd-38e7-4d77-b7b1-3dfe35d028ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to