mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-07 14:44:22 -07:00
* pacman: add support for remove_nosave
New parameter: remove_nosave
When enabled, will pass --nosave to pacman when removing packages.
--nosave cannot be used with --print-format and thus it couldn't be
passed via extra_args. See #4315
The code adds the option right before the actual removal of the pkgs.
(This is based on an initial diff from MorphBonehunter)
* changelog
* Update plugins/modules/packaging/os/pacman.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* wording
* ssss
* remove_package: simplify {force,extra,nosave}_args
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit c698ecd201
)
Co-authored-by: Jean Raby <jean@raby.sh>
This commit is contained in:
parent
77b7a65002
commit
012f684133
4 changed files with 94 additions and 13 deletions
3
changelogs/fragments/4316-pacman-remove-nosave.yml
Normal file
3
changelogs/fragments/4316-pacman-remove-nosave.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
minor_changes:
|
||||
- pacman - add ``remove_nosave`` parameter to avoid saving modified configuration files as ``.pacsave`` files.
|
||||
(https://github.com/ansible-collections/community.general/pull/4316, https://github.com/ansible-collections/community.general/issues/4315).
|
Loading…
Add table
Add a link
Reference in a new issue