mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-30 00:11:03 +01:00
33 lines
1001 B
YAML
33 lines
1001 B
YAML
- name: "create {{docker_backup_remote_to_local_folder}}"
|
|
file:
|
|
path: "{{docker_backup_remote_to_local_folder}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: create backup-remote-to-local.sh
|
|
copy:
|
|
src: backup-remote-to-local.sh
|
|
dest: "{{docker_backup_remote_to_local_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 backups-remote-to-local.sh
|
|
template:
|
|
src: backups-remote-to-local.sh.j2
|
|
dest: "{{docker_backup_remote_to_local_folder}}backups-remote-to-local.sh"
|
|
mode: 0755
|
|
|
|
- name: set service_name to the name of the current role
|
|
set_fact:
|
|
service_name: "{{ role_name }}"
|
|
|
|
- name: "include role for systemd-timer for {{service_name}}"
|
|
include_role:
|
|
name: systemd-timer
|
|
vars:
|
|
on_calendar: "{{on_calendar_backup_remote_to_local}}"
|
|
|