From 87c6e2caf082fbc68b721b5384861b283c0d7582 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 9 Apr 2018 22:00:10 +0800 Subject: radicale: use full path to git; rotation log file --- roles/radicale/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'roles/radicale/tasks/main.yml') diff --git a/roles/radicale/tasks/main.yml b/roles/radicale/tasks/main.yml index dbd6839..213b523 100644 --- a/roles/radicale/tasks/main.yml +++ b/roles/radicale/tasks/main.yml @@ -63,3 +63,9 @@ - name: enable and start uwsgi command: rcenable uwsgi + +- name: newsyslog - uwsgi/radicale log rotation + lineinfile: + path: /etc/newsyslog.conf + regexp: '/var/log/uwsgi-radicale.log' + line: "/var/log/uwsgi-radicale.log 640 7 * @T00 Z /var/run/uwsgi-radicale.pid" -- cgit v1.2.2