computer-playbook/roles/native-pull-remote-backups/tasks/main.yml

16 lines
612 B
YAML

- name: create pull-remote-backup.sh
copy:
src: pull-remote-backup.sh
dest: "/usr/local/bin/pull-remote-backup.sh"
- name: create pull-remote-backups.service
template: src=pull-remote-backups.service dest=/etc/systemd/system/pull-remote-backups.service
notify: restart pull-remote-backups service
- name: create pull-remote-backups.timer
template: src=pull-remote-backups.timer 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 dest=/usr/local/bin/pull-remote-backups.sh