mirror of
https://gitlab.com/s3lph/ansible-collection-dirvish
synced 2024-11-12 20:34:15 +01:00
15 lines
574 B
YAML
15 lines
574 B
YAML
---
|
|
|
|
- name: run snapshot master script
|
|
delegate_to: "{{ dirvish_server_vault_init_host }}"
|
|
run_once: yes
|
|
command: /usr/local/bin/dirvish-pre-client-snapshot.sh
|
|
changed_when: yes
|
|
|
|
- name: create initial non-incremental image
|
|
command:
|
|
args:
|
|
cmd: "/usr/sbin/dirvish --config {{ dirvish_server_master_conf }} --vault {{ dirvish_server_vault_init_host }} --init"
|
|
creates: "{{ bank }}/{{ dirvish_server_vault_init_host }}/dirvish/{{ dirvish_server_branch_default }}.hist"
|
|
vars:
|
|
bank: "{{ hostvars[dirvish_server_vault_init_host].dirvish_server_bank }}"
|