initial commit
This commit is contained in:
commit
13eace9ce9
219 files changed
+6918
No files matched your search
@@ -0,0 +1,22 @@
|
||||
---
|
||||
- name: manage zfs datasets
|
||||
community.general.zfs:
|
||||
name: "{{ item.name }}"
|
||||
state: "{{ item.state | default('present') }}"
|
||||
# extra_zfs_properties: "{{ item.extra_zfs_properties | default(omit) }}"
|
||||
extra_zfs_properties: >-
|
||||
{{ item.extra_zfs_properties | default({})
|
||||
| combine(({'quota': (item.quota | ansible.builtin.human_to_bytes | string)}
|
||||
if item.quota is defined else {})) }}
|
||||
loop: "{{ zfs }}"
|
||||
|
||||
- name: ensure zfs datasets are mounted
|
||||
ansible.builtin.command: zfs mount -a
|
||||
changed_when: false
|
||||
- name: manage zfs dataset permissions
|
||||
ansible.builtin.file:
|
||||
path: "/{{ item.name }}"
|
||||
owner: "100000"
|
||||
group: "100000"
|
||||
loop: "{{ zfs }}"
|
||||
when: item.state | default('present') != 'absent'
|
||||
Reference in new issue
Block a user