Skip to content
Snippets Groups Projects
Commit 5b88d22c authored by jurgenhaas's avatar jurgenhaas
Browse files

Tag the tasks required for updating the selection

parent 0b9618fe
No related branches found
No related tags found
No related merge requests found
......@@ -28,37 +28,42 @@
import_tasks: register.yml
when: spideroak_reinstall|default(false) == 'true' or (spideroak_available is defined and spideroak_available.stdout != '/usr/bin/SpiderOakONE')
- name: Stop SpiderOak
service:
name: spideroak
state: stopped
pattern: SpiderOakONE
- block:
- name: Wait
shell: sleep 5
- name: Stop SpiderOak
service:
name: spideroak
state: stopped
pattern: SpiderOakONE
- name: Ensure Monitoring Directory
file:
path: /var/backups/spideroak-monitoring
state: directory
- name: Wait
shell: sleep 5
- name: Add Monitoring Directory to SpiderOak
shell: SpiderOakONE --include-dir=/var/backups/spideroak-monitoring
- name: Ensure Monitoring Directory
file:
path: /var/backups/spideroak-monitoring
state: directory
- name: Add Directories to SpiderOak
shell: SpiderOakONE --include-dir={{ item }}
with_items: '{{ spideroak_include|default([]) }}'
- name: Add Monitoring Directory to SpiderOak
shell: SpiderOakONE --include-dir=/var/backups/spideroak-monitoring
- name: Add Drupal Files Directory to SpiderOak
shell: SpiderOakONE --include-dir={{ jailroot|default('/jails') }}/{{ item.jail.name }}/var/www/files
with_items: '{{ drupal_settings|default([]) }}'
when: item.jail is defined and item.mountpoints is not defined
- name: Add Directories to SpiderOak
shell: SpiderOakONE --include-dir={{ item }}
with_items: '{{ spideroak_include|default([]) }}'
- name: Add MySQL Backups to SpiderOak
shell: SpiderOakONE --include-dir=/var/backups/mysql
when: groups['dbserver_mysql'] is defined and inventory_hostname in groups['dbserver_mysql']
- name: Add Drupal Files Directory to SpiderOak
shell: SpiderOakONE --include-dir={{ jailroot|default('/jails') }}/{{ item.jail.name }}/var/www/files
with_items: '{{ drupal_settings|default([]) }}'
when: item.jail is defined and item.mountpoints is not defined
- name: Start SpiderOak
service:
name: spideroak
state: started
- name: Add MySQL Backups to SpiderOak
shell: SpiderOakONE --include-dir=/var/backups/mysql
when: groups['dbserver_mysql'] is defined and inventory_hostname in groups['dbserver_mysql']
- name: Start SpiderOak
service:
name: spideroak
state: started
tags:
- update
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment