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 +}