From a74f4204cdc54ea1343c410252ead0cfa66db997 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 (cherry picked from commit 640cad3fd810f0aacd41fc35b96f0be3f85fbd0d) --- 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 7e63b927e..daa6b812b 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -567,6 +567,7 @@ apt: name: "{{ item }}" state: absent + purge: true with_items: "{{ ceph_packages }}" when: ansible_pkg_mgr == 'apt'