store log file in /var/log, requires v0.2.2
This commit is contained in:
@@ -44,10 +44,19 @@
|
||||
dest: "{{ seafile_mirror_dir }}/seafile_mirror.conf.yaml"
|
||||
mode: "0600"
|
||||
|
||||
- name: Ensure log file with user permissions exists
|
||||
file:
|
||||
path: /var/log/seafile-mirror.log
|
||||
state: touch
|
||||
mode: "0644"
|
||||
owner: "{{ seafile_local_user.user }}"
|
||||
group: "{{ seafile_local_user.user }}"
|
||||
become: false
|
||||
|
||||
- name: Ensure cron entry for Seafile mirror service
|
||||
cron:
|
||||
name: Seafile Mirror Service
|
||||
job: "chronic pipx run seafile-mirror -c {{ seafile_mirror_dir }}"
|
||||
job: "chronic pipx run seafile-mirror -c {{ seafile_mirror_dir }} -l /var/log/seafile-mirror.log"
|
||||
minute: "{{ seafile_cron.minute }}"
|
||||
hour: "{{ seafile_cron.hour }}"
|
||||
day: "{{ seafile_cron.day }}"
|
||||
|
||||
Reference in New Issue
Block a user