25 lines
541 B
YAML
25 lines
541 B
YAML
---
|
|
- include_vars: vault.yml
|
|
|
|
- name: Copy rsync_backup timer
|
|
become: true
|
|
copy:
|
|
src: rsync_backup.timer
|
|
dest: /etc/systemd/system/rsync_backup.timer
|
|
notify:
|
|
- Run daemon-reload
|
|
- Enable rsync_backup timer
|
|
|
|
- name: Copy rsync_backup service
|
|
become: true
|
|
copy:
|
|
src: rsync_backup.service
|
|
dest: /etc/systemd/system/rsync_backup.service
|
|
notify: Run daemon-reload
|
|
|
|
- name: Copy rsync_backup script
|
|
become: true
|
|
template:
|
|
src: rsync_backup.sh.j2
|
|
dest: /usr/local/bin/rsync_backup.sh
|
|
mode: 0755
|