mirror of
https://github.com/roles-ansible/ansible_role_restic_archiver.git
synced 2024-08-16 10:09:49 +02:00
update restic cron repo
This commit is contained in:
parent
9c726f6e56
commit
186f2d80eb
1 changed files with 8 additions and 2 deletions
|
@ -5,12 +5,18 @@
|
||||||
name: "{{ restic_archiver__package }}"
|
name: "{{ restic_archiver__package }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: migrate cronjob to cron.d directory
|
||||||
|
become: true
|
||||||
|
ansible.builtin.cron:
|
||||||
|
name: "archive restic backup with ansible_role_restic_archiver"
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: setup cronjob for restic with logging
|
- name: setup cronjob for restic with logging
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.cron:
|
ansible.builtin.cron:
|
||||||
name: "archive restic backup with ansible_role_restic_archiver"
|
name: "archive restic backup with ansible_role_restic_archiver"
|
||||||
job: /opt/restic-backup.sh >> /var/log/restic/restic_archiver.log
|
job: /opt/restic-backup.sh >> /var/log/restic/restic_archiver.log
|
||||||
cron_file: /etc/crontab
|
cron_file: restic_archiver
|
||||||
hour: "{{ restic_archiver__hour }}"
|
hour: "{{ restic_archiver__hour }}"
|
||||||
minute: "{{ restic_archiver__minute }}"
|
minute: "{{ restic_archiver__minute }}"
|
||||||
user: "{{ restic_archiver__owner }}"
|
user: "{{ restic_archiver__owner }}"
|
||||||
|
@ -21,7 +27,7 @@
|
||||||
ansible.builtin.cron:
|
ansible.builtin.cron:
|
||||||
name: "archive restic backup with ansible_role_restic_archiver"
|
name: "archive restic backup with ansible_role_restic_archiver"
|
||||||
job: /opt/restic-backup.sh
|
job: /opt/restic-backup.sh
|
||||||
cron_file: /etc/crontab
|
cron_file: restic_archiver
|
||||||
hour: "{{ restic_archiver__hour }}"
|
hour: "{{ restic_archiver__hour }}"
|
||||||
minute: "{{ restic_archiver__minute }}"
|
minute: "{{ restic_archiver__minute }}"
|
||||||
user: "{{ restic_archiver__owner }}"
|
user: "{{ restic_archiver__owner }}"
|
||||||
|
|
Loading…
Reference in a new issue