1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-dirvish synced 2024-11-15 05:44:15 +01:00
ansible-collection-dirvish/roles/dirvish_server/tasks/vault_init.yml
2020-10-31 04:34:41 +01:00

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 }}"