From d5ff42ef54671d3f77b4ae0dee1017545c46125d Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 20 Feb 2021 10:59:44 +0100 Subject: [PATCH] update nextcloud --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index e6c1ed6..d8d0054 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -118,7 +118,7 @@ - name: create cron for nextcloud cron: - job: "sudo -u http /usr/bin/php7 -f {{nextcloud_web_root}}/cron.php" + job: "sudo -u http /usr/bin/php -f {{nextcloud_web_root}}/cron.php" user: root # not required. The specific user whose crontab should be modified. minute: 0,15,30,45 # not required. Minute when the job should run ( 0-59, *, */2, etc ) name: "nextcloud recuring cron job" # not required. Description of a crontab entry or, if env is set, the name of environment variable. Required if state=absent. Note that if name is not set and state=present, then a new crontab entry will always be created, regardless of existing ones. @@ -126,7 +126,7 @@ - name: create cron for file scan cron: - job: "sudo -u http /usr/bin/php7 /usr/share/webapps/nextcloud/occ files:scan --all > /dev/null" + job: "sudo -u http /usr/bin/php /usr/share/webapps/nextcloud/occ files:scan --all > /dev/null" user: root # not required. The specific user whose crontab should be modified. minute: "00" # not required. Minute when the job should run ( 0-59, *, */2, etc ) hour: "4"