diff --git a/roles/pgadmin4/defaults/.main.yml.swp b/roles/pgadmin4/defaults/.main.yml.swp new file mode 100644 index 0000000..7a1fe0b Binary files /dev/null and b/roles/pgadmin4/defaults/.main.yml.swp differ diff --git a/roles/pgadmin4/tasks/conf.yml b/roles/pgadmin4/tasks/conf.yml index 6d6d666..b60ba03 100644 --- a/roles/pgadmin4/tasks/conf.yml +++ b/roles/pgadmin4/tasks/conf.yml @@ -21,3 +21,6 @@ when: not pga_db.stat.exists tags: pgadmin4 +- name: Configure logrotate + template: src=logrotate.conf.j2 dest=/etc/logrotate.d/pgadmin4_{{ pga_id }} + tags: pgadmin4 diff --git a/roles/pgadmin4/templates/logrotate.conf.j2 b/roles/pgadmin4/templates/logrotate.conf.j2 new file mode 100644 index 0000000..6272b03 --- /dev/null +++ b/roles/pgadmin4/templates/logrotate.conf.j2 @@ -0,0 +1,8 @@ +{{ pga_root_dir }}/logs/*.log { + daily + rotate 180 + compress + notifempty + missingok + copytruncate +}