remove configuration files for ceph packages on ubuntu clusters

For apt-get, purge command needs to be used, instead of remove command,
to remove related configuration files. Otherwise, packages might be
shown as installed while running dpkg command even after removing them.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1640061
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 640cad3fd8)
pull/3313/head
Rishabh Dave 2018-10-31 10:46:13 -04:00 committed by Sébastien Han
parent 77de54025b
commit a74f4204cd
1 changed files with 1 additions and 0 deletions

View File

@ -567,6 +567,7 @@
apt:
name: "{{ item }}"
state: absent
purge: true
with_items: "{{ ceph_packages }}"
when: ansible_pkg_mgr == 'apt'