Hi,
I'm trying to get Ansible to copy files from a mapped azure drive locally
but I keep getting the below error:
fatal: [192.168.1.193]: FAILED! => {"changed": false, "dest":
"C:\\Temp\\dotNET53", "msg": "Cannot copy src file:
'Z:\\Software\\Microsoft\\dotNET3\\microsoft-windows-netfx3.cab' as it does
not exist", "src":
"Z:\\Software\\Microsoft\\dotNET3\\microsoft-windows-netfx3.cab"}
My code is:
- name: Copy dotNET 3.5 CAB File to Server
win_copy:
src: Z:\Software\Microsoft\dotNET3\microsoft-windows-netfx3.cab
dest: "{{ Generic_Temp_Path }}\\dotNET53"
remote_src: true
All the online reading I've done seems to point to double hop creds being
the issue. But I'm a bit stuck since the authentication to the mapped
drive is using the storage key as the pass and localhost\storageaccountname
as username.
If I log in as ansible_user then run net use shows the drive mapped. I
can't switch to Azure AD auth as the boxes may or may not be joined.
Has anyone got any suggestions? I didnt think this would be so complex haha!
Thanks,
Brad.
--
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/4daf09e7-6705-4168-9058-e7cfcac1173en%40googlegroups.com.