]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
infra: add missing tag v4.0.28
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 13 Aug 2020 13:29:28 +0000 (15:29 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Thu, 13 Aug 2020 14:09:40 +0000 (10:09 -0400)
This commit adds the missing `with_pkg` tag on the logrotate
installation task.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit e1cb385740b8b32600eda90910dcff20208f8945)

roles/ceph-infra/tasks/main.yml

index 6b2409be58f864a0b8620f845a67aabbc83c4af6..60dcbb74fdaca147fac8c3a99fc5b6ac58468256 100644 (file)
@@ -25,6 +25,7 @@
   register: result
   until: result is succeeded
   when: not is_atomic | bool
+  tags: with_pkg
 
 - name: add logrotate configuration
   template:
     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