-
Notifications
You must be signed in to change notification settings - Fork 23.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[win_chocolatey]Support for Side by side installs #19582
[win_chocolatey]Support for Side by side installs #19582
Conversation
Can we get an update on this ? It's a really useful feature and I don't find any other way to inject it from win_chocolatey. |
I still see 121 files changed :-/ |
f7235c0
to
ba065d6
Compare
Since there were quite a lot of changes for the Ansible 2.3 and 2.4 releases in windows modules, this had to be rebased and resolved for merging.
ba065d6
to
d468863
Compare
@dagwieers fixed that. Never used |
CI failure in integration tests:
|
Rebase apparently went completely wrong with this one.. Sorry guys, normally we merge :).
@mattclay Fixed that for ya. The rebase went completely wrong. I had trouble rebasing the thing. Normally at work we use merge instead of rebase. Kinda confusing for the first time :). Should work now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe there is a call to Choco-Upgrade
that needs to have this new parameter passed in now. Once you fix up the minor things I'll do a test before merging.
@@ -176,7 +177,7 @@ Function Choco-Upgrade | |||
[bool]$ignoredependencies, | |||
[Parameter(Mandatory=$false, Position=10)] | |||
[int]$timeout, | |||
[Parameter(Mandatory=$false, Position=11)] | |||
[Parameter(Mandatory=$false, Position=12)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did this change, should there be more lines to add allowmultipleversions
to the 11th position?
This also went wrong during my rebase, this commit fixes that issue.
@alex3305, just tried this out locally and it doesn't work. When trying to install a newer version of putty side by side it just returns without a change. I believe the check |
ISSUE TYPE
COMPONENT NAME
win_chocolatey
ANSIBLE VERSION
SUMMARY
This commit adds support for side by side installations of the different
versions of the same Chocolatey package in Ansible.
Internally the -m flag will be set when running the choco.exe install *
command. This will make Chocolatey disregard the currently installed
version and thus not upgrade, but install it side-by-side.
This change will probably be unsupported by some packages and maybe there
will be a need to provide a path to Ansible's win_chocolatey module, so it
is easier to manage multiple side-by-side installations of the same
package.