diff --git a/roles/ind/wikmd/cron.vars b/roles/ind/wikmd/cron.vars index c0972a0..3074d2c 100644 --- a/roles/ind/wikmd/cron.vars +++ b/roles/ind/wikmd/cron.vars @@ -1,5 +1,5 @@ --- -tasks: +cronjob: #- name: home # job_name: "Daily /home/docker/ Backup" # job_minute: "0" diff --git a/roles/ind/wikmd/wikmd-install.yml b/roles/ind/wikmd/wikmd-install.yml index 18ea44b..4b4d8d2 100644 --- a/roles/ind/wikmd/wikmd-install.yml +++ b/roles/ind/wikmd/wikmd-install.yml @@ -54,7 +54,7 @@ include: ../../lib/setup-restic.yml - name: Setup Restic Cron jobs - include: ../../lib/setup-restic-cron.yml + include_tasks: ../../lib/setup-restic-cron.yml - name: Create wikmd user user: diff --git a/roles/lib/setup-restic-cron.yml b/roles/lib/setup-restic-cron.yml index 16837b0..f12d441 100644 --- a/roles/lib/setup-restic-cron.yml +++ b/roles/lib/setup-restic-cron.yml @@ -19,6 +19,6 @@ job: "{{ item.job_command }}" user: "{{ item.user }}" state: present - loop: "{{ tasks }}" + loop: "{{ cronjob }}" loop_control: label: "{{ item.name }}" \ No newline at end of file