Create root external datasets
This commit is contained in:
parent
1e14af0931
commit
dfec8a462d
@ -56,6 +56,13 @@ system_backups_snapshots_dataset: "hpool/backup"
|
||||
system_backups_snapshots_root_dataset: "{{ system_backups_snapshots_dataset }}/the-nine-worlds"
|
||||
system_backups_snapshots_data_dataset: "{{ system_backups_snapshots_root_dataset }}/data"
|
||||
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
# system:external
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
system_external_dataset: "hpool/external"
|
||||
system_external_root_dataset: "{{ system_external_dataset }}/the-nine-worlds"
|
||||
system_external_data_dataset: "{{ system_external_root_dataset }}/data"
|
||||
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
# vpn
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
|
20
playbooks/roles/system/datasets/tasks/include/external.yml
Normal file
20
playbooks/roles/system/datasets/tasks/include/external.yml
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: "external : create root external dataset"
|
||||
community.general.zfs:
|
||||
name: "{{ system_external_dataset }}"
|
||||
state: "present"
|
||||
extra_zfs_properties:
|
||||
canmount: "off"
|
||||
"com.sun:auto-snapshot": "false"
|
||||
|
||||
- name: "external : create external dataset root"
|
||||
community.general.zfs:
|
||||
name: "{{ system_external_root_dataset }}"
|
||||
state: "present"
|
||||
|
||||
- name: "external : create external dataset for the-nine-worlds"
|
||||
community.general.zfs:
|
||||
name: "{{ system_external_data_dataset }}"
|
||||
state: "present"
|
||||
extra_zfs_properties:
|
||||
canmount: "off"
|
@ -8,3 +8,8 @@
|
||||
ansible.builtin.import_tasks: "include/backups.yml"
|
||||
tags:
|
||||
- "system:datasets:backups"
|
||||
|
||||
- name: "play:system : role:datasets : tasks:external"
|
||||
ansible.builtin.import_tasks: "include/external.yml"
|
||||
tags:
|
||||
- "system:datasets:external"
|
||||
|
@ -17,6 +17,7 @@ services_volumes:
|
||||
nextcloud:
|
||||
data:
|
||||
external:
|
||||
external: true
|
||||
git:
|
||||
data:
|
||||
runner:
|
||||
|
Loading…
Reference in New Issue
Block a user