From 51b51b854a2c875618cf52118caf0bab11844b2c Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 13 Aug 2020 15:29:28 +0200 Subject: [PATCH] infra: add missing tag This commit adds the missing `with_pkg` tag on the logrotate installation task. Signed-off-by: Guillaume Abrioux (cherry picked from commit e1cb385740b8b32600eda90910dcff20208f8945) --- roles/ceph-infra/tasks/main.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/ceph-infra/tasks/main.yml b/roles/ceph-infra/tasks/main.yml index 6b2409be5..60dcbb74f 100644 --- a/roles/ceph-infra/tasks/main.yml +++ b/roles/ceph-infra/tasks/main.yml @@ -25,6 +25,7 @@ register: result until: result is succeeded when: not is_atomic | bool + tags: with_pkg - name: add logrotate configuration template: @@ -33,4 +34,11 @@ mode: "0644" owner: root group: root - when: containerized_deployment | bool \ No newline at end of file + when: + - 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, []) \ No newline at end of file -- 2.39.5