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