From ede2b1adcc129610780ca1e1d80ca218e97299ec Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 1 Mar 2021 10:00:07 +0100 Subject: [PATCH] Update to 2021-03-01 10:00 --- roles/pgadmin4/defaults/.main.yml.swp | Bin 0 -> 12288 bytes roles/pgadmin4/tasks/conf.yml | 3 +++ roles/pgadmin4/templates/logrotate.conf.j2 | 8 ++++++++ 3 files changed, 11 insertions(+) create mode 100644 roles/pgadmin4/defaults/.main.yml.swp create mode 100644 roles/pgadmin4/templates/logrotate.conf.j2 diff --git a/roles/pgadmin4/defaults/.main.yml.swp b/roles/pgadmin4/defaults/.main.yml.swp new file mode 100644 index 0000000000000000000000000000000000000000..7a1fe0bb8ee819c2e4e8cbd7918d616e4c52a057 GIT binary patch literal 12288 zcmeI&&uSDg90%~Ug5beFC@9{dqCL(0rrj;bob;els8j^Kh)lCib~cci#3Wl;O7$&# zh`xYFAHp~A4LmDqGRziQ_W@MCfgd5sZ+>Auw_$#h;^od$em~!0aa>{S#@(CypU&M| z-#4b1kegTIR+ztMcBTEl3m9kj#9m!i=U$ zOHXqzou`yY-n}8wc{S0JTrBI!Hll7-H>O%n#astZ>E3+N>Q&ca4+0Q4C2*0Awl<5j zb?5die(mauQ>R!!00Izz00bZa0SG_<0{^!_uxso?e8u(QH7^YF+L?J+VuAn!AOHaf zKmY;|fB*y_009U<;2#taHDjMIG4?A)`v1TD{{L~AvF|ay#rPWION`?fA7fmPk@A10 zXD}cD0SG_<0uX=z1Rwwb2tWV=f4@NND6d-KgLIV@-k1Eb&|b2%ZI!L&PM3TZg7qcQ zG}zo49~vk9Tb-KR$<8Osru5}Jrh~&no(deqPIhHFesn~!*2#JH$8lyCqpUNX%tW`y z-_3M?|L}OpH^%v>*y#71F`=rJD>)e(PD)loNma+o`o!2fUnyJiSFih}H7=BVyVx%J NrK(H5$yk^HpooCg2^ literal 0 HcmV?d00001 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 +}