common: Added tag backups for backup related tasks

dehydrated
Felix Stupp 4 years ago
parent 483eea3833
commit b42d639996
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -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
tags:
- backups
- name: Build and upload template helper scripts
template:
@ -33,6 +37,8 @@
- backup_files.sh
- backup_mysql_database.sh
- nsupdate_keygen.sh
tags:
- backups
- 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
tags:
- backups

@ -69,6 +69,7 @@
hdd_source_dir: "{{ backups_directory }}"
hdd_directory_name: backups
tags:
- backups
- backups_hdd_dir
- name: Create backups directories
@ -82,6 +83,8 @@
- "{{ backups_directory }}"
- "{{ backups_files_directory }}"
- "{{ backups_mysql_database_directory }}"
tags:
- backups
- name: Flush handlers for role
meta: flush_handlers

Loading…
Cancel
Save