diff --git a/tasks/greenlight.yml b/tasks/greenlight.yml index f3fbee2..a0844b7 100644 --- a/tasks/greenlight.yml +++ b/tasks/greenlight.yml @@ -123,6 +123,16 @@ tags: - greenlight-config +- name: Create greenlight logrotate configuration + template: + src: templates/greenlight.logrotate.j2 + dest: /etc/logrotate.d/greenlight + mode: 0644 + owner: root + group: root + tags: + - greenlight-config + - name: Examine BBB configuration command: /usr/bin/bbb-conf --secret changed_when: false diff --git a/templates/greenlight.logrotate.j2 b/templates/greenlight.logrotate.j2 new file mode 100644 index 0000000..16da09e --- /dev/null +++ b/templates/greenlight.logrotate.j2 @@ -0,0 +1,8 @@ +{{ bbb_greenlight_logdir }}/*.log { + daily + missingok + rotate 7 + compress + notifempty + copytruncate +}