Hi All,

Really excited to have discovered this group. Looking forward to being an 
active member. 

I've just got going on ansible to manage some windows workstations. I'm 
attempting to use the win_chocolatey module to manage my installs. 
Does anyone know if it's possible to use a UNC path to a windows file share 
as the source of the packages. 

For example:

     - name: Install Packages
       win_chocolatey:
         name: "{{ item.name }}"
         source: "{{ item.source }}"
         state: present
       with_items:
         - { name: "package1", source: 
'\\fileserver\Installs\package1.nupkg' }
         - { name: "package2", source: 
'\\fileserver\Installs\package2.nupkg' }

When running the above (and many different permutations) I get the below 
error:
"msg": "Exception calling \"DownloadString\" with \"1\" argument(s): 
\"Unable to connect to the remote server\""}

I have ensured the account i'm running the playbook with has a kerberos 
ticket using kinit and can connect to both the machine being managed and 
the fileshare, and has the correct NTFS/share permissions. 

I would have though as win_chocolatey relies on winRM that connecting to 
windows file shares was possible but want to confirm.

Thanks in advance.

Nick




-- 
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/9e05a6ff-972b-4242-92df-d56deb4c4e8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to