Add external disk to pi

This commit is contained in:
Thomas Kleinendorst 2024-12-29 12:22:16 +01:00
parent 10c5b7836a
commit 193580f215
4 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,15 @@
---
- name: Mount the external disk automatically
become: true
ansible.posix.mount:
path: /bulk
src: "PARTUUID={{ disk_part_uuid }}"
fstype: ext4
opts: defaults
state: mounted
- name: Grant permissions to created /bulk volume
become: true
ansible.builtin.file:
path: /bulk
state: directory
mode: '0777'

View file

@ -0,0 +1,2 @@
---
disk_part_uuid: '46c2e279-f56d-a64b-816e-24faf8b214c6'