computer-playbook/roles/backups-consumer/tasks/main.yml

27 lines
863 B
YAML
Raw Normal View History

2023-04-12 10:36:38 +02:00
- name: "create {{docker_pull_primary_backups_folder}}"
file:
path: "{{docker_pull_primary_backups_folder}}"
state: directory
mode: 0755
2021-01-10 20:35:37 +01:00
- name: create pull-remote-backup.sh
copy:
src: pull-remote-backup.sh
2023-04-12 10:36:38 +02:00
dest: "{{docker_pull_primary_backups_folder}}pull-remote-backup.sh"
2023-04-12 20:32:52 +02:00
mode: 0755
2021-01-10 20:35:37 +01:00
- name: create pull-remote-backups.service
2023-03-26 17:05:06 +02:00
template: src=pull-remote-backups.service.j2 dest=/etc/systemd/system/pull-remote-backups.service
2023-04-15 17:06:10 +02:00
notify: reload pull-remote-backups service
2021-01-10 20:35:37 +01:00
- name: create pull-remote-backups.timer
2023-03-26 17:05:06 +02:00
template: src=pull-remote-backups.timer.j2 dest=/etc/systemd/system/pull-remote-backups.timer
notify: restart pull-remote-backups timer
2020-12-26 16:44:32 +01:00
2021-01-10 20:35:37 +01:00
- name: create pull-remote-backups.sh
2023-04-12 20:32:52 +02:00
template:
src: pull-remote-backups.sh.j2
dest: "{{docker_pull_primary_backups_folder}}pull-remote-backups.sh"
mode: 0755