common: Added create backup scripts directories

dehydrated
Felix Stupp 5 years ago
parent 5b253fd6b6
commit e6cbc59571
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -15,6 +15,9 @@ backup_gpg_fingerprint: "73D09948B2392D688A45DC8393E1BD26F6B02FB7"
backups_directory: "/backups" backups_directory: "/backups"
backups_files_directory: "{{ backups_directory }}/files" backups_files_directory: "{{ backups_directory }}/files"
backups_mysql_database_directory: "{{ backups_directory }}/databases" backups_mysql_database_directory: "{{ backups_directory }}/databases"
backup_scripts_directory: "/root/backup"
backup_files_scripts_directory: "{{ backup_scripts_directory }}/files"
backup_mysql_database_scripts_directory: "{{ backup_scripts_directory }}/mysql_databases"
global_local_user: "{{ lookup('env', 'USER') }}" global_local_user: "{{ lookup('env', 'USER') }}"

@ -43,6 +43,9 @@
group: root group: root
mode: "u=rwx,g=rx,o=" mode: "u=rwx,g=rx,o="
loop: loop:
- "{{ backup_scripts_directory }}"
- "{{ backup_files_scripts_directory }}"
- "{{ backup_mysql_database_scripts_directory }}"
- "{{ update_scripts_directory }}" - "{{ update_scripts_directory }}"
- name: Create backups directories - name: Create backups directories

Loading…
Cancel
Save