mirror of
https://gitlab.com/s3lph/ansible-collection-dirvish
synced 2024-11-14 21:34:14 +01:00
35 lines
854 B
YAML
35 lines
854 B
YAML
|
---
|
||
|
|
||
|
- 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"
|