From cdbba4a28c2ba256449120d10a9b8c61d2ae0963 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 6 Jan 2021 13:00:06 +0100 Subject: [PATCH] Update to 2021-01-06 13:00 --- roles/glpi/tasks/conf.yml | 4 ++++ roles/glpi/templates/logrotate.conf.j2 | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 roles/glpi/templates/logrotate.conf.j2 diff --git a/roles/glpi/tasks/conf.yml b/roles/glpi/tasks/conf.yml index 732488f..e50875e 100644 --- a/roles/glpi/tasks/conf.yml +++ b/roles/glpi/tasks/conf.yml @@ -28,3 +28,7 @@ - name: Deploy sso.php script template: src=sso.php.j2 dest={{ glpi_root_dir }}/web/sso.php tags: glpi + +- name: Deploy logrotate conf + template: src=logrotate.conf.j2 dest=/etc/logrotate.d/glpi_{{ glpi_id }} + tags: glpi diff --git a/roles/glpi/templates/logrotate.conf.j2 b/roles/glpi/templates/logrotate.conf.j2 new file mode 100644 index 0000000..a188039 --- /dev/null +++ b/roles/glpi/templates/logrotate.conf.j2 @@ -0,0 +1,6 @@ +{{ glpi_root_dir }}/data/_log/*.log { + daily + rotate 90 + compress + missingok +}