# Ansible + Chocolatey + Windows File based local repository

**URL:** <https://forum.ansible.com/t/ansible-chocolatey-windows-file-based-local-repository/26115>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [November 23, 2017, 11:06am UTC](https://forum.ansible.com/t/ansible-chocolatey-windows-file-based-local-repository/26115 "2017-11-23T11:06:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Brush](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@Adam\_Brush](https://forum.ansible.com/u/Adam_Brush)\
**Post date:** [November 23, 2017, 11:06am UTC](https://forum.ansible.com/t/ansible-chocolatey-windows-file-based-local-repository/26115/1 "2017-11-23T11:06:36Z")

</div>

Morning,

I’ve had issues with getting Ansible / Chocolatey to use a network share local file server / repository, however i’ve now managed to get it working.

Details here:

[https://controlaltfail.wordpress.com/2017/11/23/ansible-and-chocolatey-with-windows-fileshare-repository/](https://controlaltfail.wordpress.com/2017/11/23/ansible-and-chocolatey-with-windows-fileshare-repository/)

A

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [November 24, 2017, 1:43pm UTC](https://forum.ansible.com/t/ansible-chocolatey-windows-file-based-local-repository/26115/2 "2017-11-24T13:43:52Z")

</div>

Good to know there’s a workaround  
I think if you used Kerberos for authentication, and configure your inventory/group\_vars for credential delegation, your ansibles modules will connect to the shares as the same user that ansible connected as, meaning you shouldn’t have to setup anonymous access.

See the vars you can set at the bottom of this section of the documentation:  
[http://docs.ansible.com/ansible/latest/intro\_windows.html#inventory](http://docs.ansible.com/ansible/latest/intro_windows.html#inventory)

In my experience this works fine as long as the share is also a domain-joined machine. If you are using a NAS-type device which doesn’t authenticate with AD then the credential delegation won’t help you.

Hope this helps,

Jon
