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:
Brendan Almonte 2017-05-25 12:52:41 -07:00 committed by Toshio Kuratomi
commit 2af5556901
2 changed files with 66 additions and 4 deletions

View file

@ -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