Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
559 B

{% for zfs in zfs_snap %}
[{{ zfs.name }}]
use_template = default
recursive = {{ zfs.recursive | default('yes') }}
{% for key in zfs.keys() | list | difference(['name']) %}
{{ key }} = {{ zfs[key] }}
{% endfor %}
{% endfor %}
[template_default]
frequently = {{ zfs_snap_frequently }}
hourly = {{ zfs_snap_hourly }}
daily = {{ zfs_snap_daily }}
weekly = {{ zfs_snap_weekly }}
monthly = {{ zfs_snap_monthly }}
yearly = {{ zfs_snap_yearly }}
autosnap = {{ zfs_repl_recv | ternary('no', 'yes') }}
autoprune = yes