From 041e8b0eaa76dcf49d418e5f04f7d987ed369162 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Thu, 28 Oct 2021 17:15:49 -0400 Subject: [PATCH] cephadm-adopt: remove logrotate configuration cephadm uses its own logrotate configuration file so ceph-ansible needs to remove that custom file during the cephadm-adopt playbook. Closes: #6944 Signed-off-by: Dimitri Savineau (cherry picked from commit c41241244e835ada1988b16252b80330b5e80efb) --- infrastructure-playbooks/cephadm-adopt.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/infrastructure-playbooks/cephadm-adopt.yml b/infrastructure-playbooks/cephadm-adopt.yml index 23556245c..f687c6701 100644 --- a/infrastructure-playbooks/cephadm-adopt.yml +++ b/infrastructure-playbooks/cephadm-adopt.yml @@ -362,6 +362,18 @@ delegate_to: '{{ groups[mon_group_name][0] }}' when: ceph_docker_registry_auth | bool + - name: remove logrotate configuration + file: + path: /etc/logrotate.d/ceph + state: absent + when: inventory_hostname in groups.get(mon_group_name, []) or + inventory_hostname in groups.get(osd_group_name, []) or + inventory_hostname in groups.get(mds_group_name, []) or + inventory_hostname in groups.get(rgw_group_name, []) or + inventory_hostname in groups.get(mgr_group_name, []) or + inventory_hostname in groups.get(rbdmirror_group_name, []) or + inventory_hostname in groups.get(iscsi_gw_group_name, []) + - name: store existing rbd mirror peers in monitor config store hosts: "{{ rbdmirror_group_name|default('rbdmirrors') }}" -- 2.39.5