So the drive mapping is present but Windows is unable to map the drive on 
logon. You can use the win_credential [1] to store a credential that 
Windows will use for mapped drives. There's even an example of this in the 
win_mapped_drive [2] docs. If you are running the net use command through 
Ansible and expecting to see that mapped drive available then you are out 
of luck. Mapped drives are only for use with interactive logons and not for 
use in Ansible, Ansible can only manage the mappings but not use them.

[1] 
https://docs.ansible.com/ansible/latest/modules/win_credential_module.html
[2] 
https://docs.ansible.com/ansible/latest/modules/win_mapped_drive_module.html

-- 
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/d013a3e5-d5d0-4aa9-b809-7850cee84167%40googlegroups.com.

Reply via email to