diff --git a/tasks/distribution/Linux.yml b/tasks/distribution/Linux.yml index 2de4a22..cc26fad 100644 --- a/tasks/distribution/Linux.yml +++ b/tasks/distribution/Linux.yml @@ -25,9 +25,9 @@ weekday: '{{ schedule_weekday | default("*") }}' month: '{{ schedule_month | default("*") }}' state: present - become: yes + become: true when: - restic_create_cron - item.name is defined - item.scheduled - with_items: '{{ restic_backups }}' \ No newline at end of file + with_items: '{{ restic_backups }}'