From 640cad3fd810f0aacd41fc35b96f0be3f85fbd0d Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Wed, 31 Oct 2018 10:46:13 -0400 Subject: [PATCH] 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 --- infrastructure-playbooks/purge-cluster.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index b895cd797..23295b8f6 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -566,6 +566,7 @@ apt: name: "{{ item }}" state: absent + purge: true with_items: "{{ ceph_packages }}" when: ansible_pkg_mgr == 'apt'