1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-dirvish synced 2024-11-14 21:34:14 +01:00
ansible-collection-dirvish/roles/dirvish_client/tasks/snapshots.yml

35 lines
854 B
YAML
Raw Normal View History

2020-10-31 04:34:41 +01:00
---
- name: create snapshot scripts directory
file:
path: "{{ dirvish_client_snapshot_directory }}"
state: directory
owner: root
group: root
mode: "0755"
- name: install snapshot scripts
template:
src: "snapshot_scripts/{{ item }}.j2"
dest: "{{ dirvish_client_snapshot_directory }}/{{ item }}"
owner: root
group: root
mode: "0700"
loop: "{{ dirvish_client_snapshot_scripts }}"
- name: install snapshot master script
template:
src: dirvish-pre-client-snapshot.sh.j2
dest: /usr/local/bin/dirvish-pre-client-snapshot.sh
owner: root
group: root
mode: "0755"
- name: install snapshot master cronjob
template:
src: dirvish-pre-client-snapshot.cronjob.j2
dest: "{{ dirvish_client_cronjob_directory }}/dirvish-pre-client-snapshot"
owner: root
group: root
mode: "0644"