From: Guillaume Abrioux Date: Thu, 13 Aug 2020 18:37:11 +0000 (+0200) Subject: infra: only install logrotate on right nodes X-Git-Tag: v6.0.0alpha2~68 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8ed11ea3ee9ea006ecf723c070fa18d3b318f580;p=ceph-ansible.git infra: only install logrotate on right nodes For intsance, there is no need to install logrotate on clients nodes. This also ensure logrotate is installed only for containerized deployments since the packaging has an explicit dependency to logrotate Signed-off-by: Guillaume Abrioux --- diff --git a/roles/ceph-infra/tasks/main.yml b/roles/ceph-infra/tasks/main.yml index 60dcbb74f..77337b6e6 100644 --- a/roles/ceph-infra/tasks/main.yml +++ b/roles/ceph-infra/tasks/main.yml @@ -24,8 +24,16 @@ state: present register: result until: result is succeeded - when: not is_atomic | bool tags: with_pkg + when: + - not is_atomic | bool + - containerized_deployment | bool + - 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, []) - name: add logrotate configuration template: