Add missing use case with module purge (#81237)

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/81113/head
moscaluc 1 year ago committed by GitHub
parent c5e54be5ea
commit 479928c199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -58,7 +58,7 @@ options:
default: 0
purge:
description:
- Will force purging of configuration files if the module O(state) is set to V(absent).
- Will force purging of configuration files if O(state=absent) or O(autoremove=yes).
type: bool
default: 'no'
default_release:
@ -314,6 +314,11 @@ EXAMPLES = '''
ansible.builtin.apt:
autoremove: yes
- name: Remove dependencies that are no longer required and purge their configuration files
ansible.builtin.apt:
autoremove: yes
purge: true
- name: Run the equivalent of "apt-get clean" as a separate step
apt:
clean: yes

Loading…
Cancel
Save