From: Dimitri Savineau Date: Thu, 28 Oct 2021 21:15:49 +0000 (-0400) Subject: cephadm-adopt: remove logrotate configuration X-Git-Tag: v6.0.19~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=041e8b0eaa76dcf49d418e5f04f7d987ed369162;p=ceph-ansible.git 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) --- 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') }}"