Closed mathstuf closed 2 weeks ago
Even using force: true
doesn't help; the existing components are the only ones installed.
state: reinstalled
fails because the parameters are passed to the uninstaller and not understood.
Is there some mechanism by which the package could get some handle on the request to do its own syncup action? For example:
vsinstaller
command to --add
and --remove
to make the state consistentSo... a couple things:
force: true
would be required, otherwise choco
itself won't do the reinstallation. As far as I know, choco doesn't consider changed parameters to be sufficient for a reinstallation on their own.I don't think this is something we can handle in this collection, though, so I'm going to close out this issue for now.
Thanks. I think we came to the conclusion that using choco
to install VS (component-less) but a specific VS Installer-aware action to manage its components is a better solution.
Checklist
What You Are Seeing?
I have a set of Ansible rules that build up a string for
package_params
. If this changes, the package is not prodded to analyze the parameters again. For example, I build up the set of--add
flags forvisualstudio2022community
. If I deploy once with one set of--add
flags, further deployments with additional--add
flags do not end up adding those components to the existing installation.What is Expected?
Package parameters changing cause the new state to be realized.
How Did You Get This To Happen?
System Details
Installed Packages
Output Log
Additional Context
No response