diff options
| author | admin | 2024-09-26 16:12:18 +0200 |
|---|---|---|
| committer | admin | 2024-09-26 16:12:18 +0200 |
| commit | 3c0067e30eddfbd1e5176bc12b837215356e4dde (patch) | |
| tree | 95d5e332a192100737468fa0a7f7084c261aaf7a | |
| parent | c0a3609a72bd1d38d14069831289771a76564d5c (diff) | |
| download | ansible-3c0067e30eddfbd1e5176bc12b837215356e4dde.tar.gz | |
cronjob for nextcloudmain
| -rw-r--r-- | roles/nextcloud/tasks/installation.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/nextcloud/tasks/installation.yml b/roles/nextcloud/tasks/installation.yml index 5020b88..516081b 100644 --- a/roles/nextcloud/tasks/installation.yml +++ b/roles/nextcloud/tasks/installation.yml @@ -47,3 +47,17 @@ failed_when: - nc_installation_confphp.rc is defined - nc_installation_confphp.rc != 0 + +- name: set MAILTO in crontab for Nextcloud + become: true + become_user: www-data + cronvar: + name: MAILTO + value: status@iamfabulous.de + +- name: set cronjob for Nextcloud + ansible.builtin.cron: + name: "runs Nextcloud cron job" + minute: "*/5" + user: "{{ nextcloud_websrv_user }}" + job: "php -f {{ nextcloud_webroot }}/cron.php" |
