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 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/14a5925e-5f00-4612-95da-a5d21abff968%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to