|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
- name: Create directory for backups for files of {{ domain }}
|
|
|
|
|
- name: Create directory for backups for files of {{ backup_name }}
|
|
|
|
|
file:
|
|
|
|
|
state: directory
|
|
|
|
|
path: "{{ backup_target }}"
|
|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
group: root
|
|
|
|
|
mode: "u=rwx,g=rx,o=rx"
|
|
|
|
|
|
|
|
|
|
- name: Install auto backup script for files of {{ domain }}
|
|
|
|
|
- name: Install auto backup script for files of {{ backup_name }}
|
|
|
|
|
template:
|
|
|
|
|
src: "backup.sh"
|
|
|
|
|
dest: "{{ backup_script }}"
|
|
|
|
@ -16,7 +16,7 @@
|
|
|
|
|
group: root
|
|
|
|
|
mode: "u=rwx,g=rx,o=r"
|
|
|
|
|
|
|
|
|
|
- name: Configure auto backup files of {{ domain }}
|
|
|
|
|
- name: Configure auto backup files of {{ backup_name }}
|
|
|
|
|
cron:
|
|
|
|
|
hour: 1
|
|
|
|
|
minute: 0
|
|
|
|
|