mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-27 04:25:02 +01:00
27 lines
863 B
YAML
27 lines
863 B
YAML
- name: "create {{docker_pull_primary_backups_folder}}"
|
|
file:
|
|
path: "{{docker_pull_primary_backups_folder}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: create pull-remote-backup.sh
|
|
copy:
|
|
src: pull-remote-backup.sh
|
|
dest: "{{docker_pull_primary_backups_folder}}pull-remote-backup.sh"
|
|
mode: 0755
|
|
|
|
- name: create pull-remote-backups.service
|
|
template: src=pull-remote-backups.service.j2 dest=/etc/systemd/system/pull-remote-backups.service
|
|
notify: reload pull-remote-backups service
|
|
|
|
- name: create pull-remote-backups.timer
|
|
template: src=pull-remote-backups.timer.j2 dest=/etc/systemd/system/pull-remote-backups.timer
|
|
notify: restart pull-remote-backups timer
|
|
|
|
- name: create pull-remote-backups.sh
|
|
template:
|
|
src: pull-remote-backups.sh.j2
|
|
dest: "{{docker_pull_primary_backups_folder}}pull-remote-backups.sh"
|
|
mode: 0755
|
|
|