mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-10 06:51:04 +01:00
29 lines
1.0 KiB
YAML
29 lines
1.0 KiB
YAML
- name: "create {{docker_pull_primary_backups_folder}}"
|
|
file:
|
|
path: "{{docker_pull_primary_backups_folder}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: create backup-remote-to-local.sh
|
|
copy:
|
|
src: backup-remote-to-local.sh
|
|
dest: "{{docker_pull_primary_backups_folder}}backup-remote-to-local.sh"
|
|
mode: 0755
|
|
|
|
- name: create backup-remote-to-local.service
|
|
template: src=backup-remote-to-local.service.j2 dest=/etc/systemd/system/backup-remote-to-local.service
|
|
notify: reload backup-remote-to-local service
|
|
|
|
- name: create backup-remote-to-local.timer
|
|
template: src=backup-remote-to-local.timer.j2 dest=/etc/systemd/system/backup-remote-to-local.timer
|
|
register: backup_remote_to_local_timer
|
|
changed_when: backup_remote_to_local_timer.changed or activate_all_timers | default(false) | bool
|
|
notify: restart backup-remote-to-local timer
|
|
|
|
- name: create backup-remote-to-local.sh
|
|
template:
|
|
src: backup-remote-to-local.sh.j2
|
|
dest: "{{docker_pull_primary_backups_folder}}backup-remote-to-local.sh"
|
|
mode: 0755
|
|
|