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 owner: root
group: root group: root
mode: "u=rwx,g=rx,o=rx" mode: "u=rwx,g=rx,o=rx"
tags:
- backups
- name: Upload helper scripts - name: Upload helper scripts
copy: copy:
@ -19,6 +21,8 @@
loop: loop:
- backup_rename.sh - backup_rename.sh
- gpg_import_url_key.sh - gpg_import_url_key.sh
tags:
- backups
- name: Build and upload template helper scripts - name: Build and upload template helper scripts
template: template:
@ -33,6 +37,8 @@
- backup_files.sh - backup_files.sh
- backup_mysql_database.sh - backup_mysql_database.sh
- nsupdate_keygen.sh - nsupdate_keygen.sh
tags:
- backups
- name: Configure auto remove older backups - name: Configure auto remove older backups
cron: cron:
@ -41,3 +47,5 @@
job: "{{ global_helper_directory }}/backup_autoremove.sh" job: "{{ global_helper_directory }}/backup_autoremove.sh"
name: "Auto remove older backups" name: "Auto remove older backups"
state: present state: present
tags:
- backups

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

Loading…
Cancel
Save