23 lines
861 B
YAML
23 lines
861 B
YAML
---
|
|
- name: "{{ backups_snapshots_user_name }} : configure service sanoid snapshots"
|
|
ansible.builtin.blockinfile:
|
|
path: "/etc/sanoid/sanoid.conf"
|
|
insertbefore: "# BEGIN ANSIBLE MANAGED BLOCK TEMPLATES #"
|
|
marker: "# {mark} ANSIBLE MANAGED BLOCK USER {{ backups_snapshots_user_name }} #"
|
|
block: |
|
|
[{{ backups_snapshots_user_data_dataset }}]
|
|
use_template = production
|
|
recursive = yes
|
|
process_children_only = yes
|
|
|
|
[{{ backups_snapshots_user_backup_dataset }}]
|
|
use_template = backup
|
|
recursive = yes
|
|
process_children_only = yes
|
|
|
|
- name: "{{ backups_snapshots_user_name }} : configure service syncoid snapshots"
|
|
ansible.builtin.template:
|
|
src: "./volumes.yml.j2"
|
|
dest: "/etc/syncoid-batch.d/{{ backups_snapshots_user_name }}.yml"
|
|
mode: 0644
|