Hi Jordan, 

I’ve just tried the approach that you suggested and it worked for me. 

Thanks for the tip. 

Guillaume.

> On 09 Apr 2019, at 01:42, Jordan Borean <jborea...@gmail.com> wrote:
> 
> Not something I've tested but if you are installing it from the public repo 
> and not some internal repository you might be able to set the 
> 'chocolateyVersion' environment variable as documented by 
> https://chocolatey.org/install#installing-a-particular-version-of-chocolatey. 
> This can be done with;
> 
> - win_chocolatey:
>     name: chocolatey
>     state: present
>   environment:
>     chocolateyVersion: '0.10.11'
> 
> This isn't something I've tested to prove it works so you would just have to 
> try it and see how it goes. The alternative option is to use an internal repo 
> and don't add the latest Chocolatey version nupkg and source it from there.
> 
> Thanks
> 
> Jordan
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Ansible Project" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/ansible-project/6_iHgmMyFnQ/unsubscribe 
> <https://groups.google.com/d/topic/ansible-project/6_iHgmMyFnQ/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> ansible-project+unsubscr...@googlegroups.com 
> <mailto:ansible-project+unsubscr...@googlegroups.com>.
> To post to this group, send email to ansible-project@googlegroups.com 
> <mailto:ansible-project@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/14a5925e-5f00-4612-95da-a5d21abff968%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/ansible-project/14a5925e-5f00-4612-95da-a5d21abff968%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/A4BBDAB3-026A-48E8-B401-6A73FE4333B2%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to