Add external disk to pi
This commit is contained in:
parent
10c5b7836a
commit
193580f215
4 changed files with 23 additions and 0 deletions
15
roles/fstab/tasks/main.yml
Normal file
15
roles/fstab/tasks/main.yml
Normal 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'
|
||||
2
roles/fstab/vars/main/defaults.yml
Normal file
2
roles/fstab/vars/main/defaults.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
disk_part_uuid: '46c2e279-f56d-a64b-816e-24faf8b214c6'
|
||||
Loading…
Add table
Add a link
Reference in a new issue