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_root_dataset: "{{ system_backups_snapshots_dataset }}/the-nine-worlds"
|
||||||
system_backups_snapshots_data_dataset: "{{ system_backups_snapshots_root_dataset }}/data"
|
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
|
# 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"
|
ansible.builtin.import_tasks: "include/backups.yml"
|
||||||
tags:
|
tags:
|
||||||
- "system:datasets:backups"
|
- "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:
|
nextcloud:
|
||||||
data:
|
data:
|
||||||
external:
|
external:
|
||||||
|
external: true
|
||||||
git:
|
git:
|
||||||
data:
|
data:
|
||||||
runner:
|
runner:
|
||||||
|
Loading…
Reference in New Issue
Block a user