Open Alexhha opened 2 years ago
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @AnderEnder @alxgu @andytom @commel @dcermak @evrardjp @lrupp @sealor @toabctl click here for bot help
Does the module document that it supports wildcards somewhere? If not, this isn't a bug, but a feature request. In the documentation, I only found the special value *
for state=latest
.
It doesn't, but the same for apt/yum modules. They are not document *
support, but they do support
The modules mostly pass the user input on to the package manager, which is why wildcards seem to work in some cases. If the modules don't explicitly support wildcards, things like idempotency and presence checking will fail, which is probably what you are experiencing here.
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
Summary
Can't remove packages if name contains wildcard
It works with apt/yum modules, but doesn't work with zypper
Issue Type
Bug Report
Component Name
zypper
Ansible Version
Configuration
OS / Environment
SLES12 SP5
Steps to Reproduce
Expected Results
All postgresql packages should be removed
Actual Results
A packages were not removed
zypper itself supports wildcard
Code of Conduct