Fix issue with refreservation in testing
This commit is contained in:
parent
b12d15c3fe
commit
eb545b5d69
@ -29,3 +29,7 @@ argument_specs:
|
||||
system_backups_snapshots_data_dataset:
|
||||
type: "str"
|
||||
required: true
|
||||
system_datasets_var_containers_zvol_properties:
|
||||
type: "dict"
|
||||
elem: "str"
|
||||
required: true
|
||||
|
@ -15,9 +15,7 @@
|
||||
community.general.zfs:
|
||||
name: "{{ system_var_containers_dataset }}"
|
||||
state: "present"
|
||||
extra_zfs_properties:
|
||||
volsize: "21474836480" # 20G
|
||||
"com.sun:auto-snapshot": "false"
|
||||
extra_zfs_properties: "{{ system_datasets_var_containers_zvol_properties }}"
|
||||
|
||||
- name: "var : format containers zvol"
|
||||
community.general.filesystem:
|
||||
|
@ -106,6 +106,16 @@
|
||||
roles:
|
||||
- role: "system/datasets"
|
||||
tags: "system:datasets"
|
||||
vars:
|
||||
_zvol_volsize: "21474836480" # 20G
|
||||
system_datasets_var_containers_zvol_properties: "\
|
||||
{% set _zvol_properties = {} %}\
|
||||
{{ _zvol_properties.update({ 'volsize': _zvol_volsize }) }}\
|
||||
{{ _zvol_properties.update({ 'com.sun:auto-snapshot': 'false' }) }}\
|
||||
{% if not (the_nine_worlds_production | bool) %}\
|
||||
{{ _zvol_properties.update({ 'refreservation': '0' }) }}\
|
||||
{% endif %}\
|
||||
{{ _zvol_properties }}"
|
||||
|
||||
- name: "system : asgard"
|
||||
hosts: "asgard"
|
||||
|
Loading…
Reference in New Issue
Block a user