mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Added autoclean/autoremove for the apt module
- Removed alias autoclean from autoremove. - Added independent execution of apt-get autoclean/autoremove - Continued to support --auto-remove as a flag to install/remove Fixes #22222 #24718
This commit is contained in:
parent
8fca263560
commit
2af5556901
2 changed files with 66 additions and 4 deletions
|
@ -160,3 +160,12 @@
|
|||
that:
|
||||
- "not apt_result.changed"
|
||||
- "apt_result.failed"
|
||||
|
||||
- name: autoclean during install
|
||||
apt: pkg=hello state=present autoclean=yes
|
||||
|
||||
- name: autoclean
|
||||
apt: autoclean=yes
|
||||
|
||||
- name: autoremove
|
||||
apt: autoremove=yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue