From 47a0be7f0b5794b1cf56ad70b87b419c7e05a1b5 Mon Sep 17 00:00:00 2001 From: BhEaN <bhean@vandalsweb.com> Date: Sun, 21 Apr 2019 17:03:21 +0200 Subject: [PATCH] Use root to add crontab backup tasks [skip-ci] --- tasks/add-cron-tasks.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/add-cron-tasks.yml b/tasks/add-cron-tasks.yml index 31d19db..7c66745 100644 --- a/tasks/add-cron-tasks.yml +++ b/tasks/add-cron-tasks.yml @@ -1,5 +1,6 @@ --- - name: "Setting backup (data) cron task" + become: yes cron: cron_file: "{{ gitlabserver_backup_cron_file }}" name: "{{ gitlabserver_backup_cron_data_name }}" @@ -13,6 +14,7 @@ user: root - name: "Setting backup (config) cron task" + become: yes cron: cron_file: "{{ gitlabserver_backup_cron_file }}" name: "{{ gitlabserver_backup_cron_config_name }}" -- GitLab