@ -7,6 +7,8 @@
owner: root
group: root
mode: "u=rwx,g=rx,o=rx"
tags:
- backups
- name: Upload helper scripts
copy:
@ -19,6 +21,8 @@
loop:
- backup_rename.sh
- gpg_import_url_key.sh
- name: Build and upload template helper scripts
template:
@ -33,6 +37,8 @@
- backup_files.sh
- backup_mysql_database.sh
- nsupdate_keygen.sh
- name: Configure auto remove older backups
cron:
@ -41,3 +47,5 @@
job: "{{ global_helper_directory }}/backup_autoremove.sh"
name: "Auto remove older backups"
state: present
@ -69,6 +69,7 @@
hdd_source_dir: "{{ backups_directory }}"
hdd_directory_name: backups
- backups_hdd_dir
- name: Create backups directories
@ -82,6 +83,8 @@
- "{{ backups_directory }}"
- "{{ backups_files_directory }}"
- "{{ backups_mysql_database_directory }}"
- name: Flush handlers for role
meta: flush_handlers