Set up logrotate for odcs-backend

The logrotate config file exists in the repository, but it doesn't get
installed. Let's fix it.
This commit is contained in:
Lubomír Sedlář 2023-05-19 09:16:49 +02:00 committed by zlopez
parent f5a2adf4db
commit 5c2c077ba8

View file

@ -285,6 +285,15 @@
- odcs
- odcs/backend
- name: configure logrotate
copy:
src: "{{ roles_path }}/odcs/base/files/logrotate.d/odcs }}"
dest: /etc/logrotate.d/odcs
when: inventory_hostname.startswith('odcs-backend')
tags:
- odcs
- odcs/backend
- name: Run systemd-tmpfiles --create
command: systemd-tmpfiles --create
args: