diff --git a/tasks/apt.yml b/tasks/apt.yml index 9eabf3146..bf4746913 100644 --- a/tasks/apt.yml +++ b/tasks/apt.yml @@ -3,4 +3,5 @@ apt: name: '{{ os_security_packages_list }}' state: 'absent' + purge: 'yes' when: os_security_packages_clean | bool diff --git a/tasks/yum.yml b/tasks/yum.yml index 9902af69b..a123f7548 100644 --- a/tasks/yum.yml +++ b/tasks/yum.yml @@ -38,4 +38,5 @@ yum: name: '{{ os_security_packages_list }}' state: 'absent' + purge: 'yes' when: os_security_packages_clean | bool