Add a script to automatically mount datasets.

This commit is contained in:
Tom Alexander
2022-11-01 22:42:46 -04:00
parent d7a8dd4d67
commit 683c264650
4 changed files with 176 additions and 2 deletions

View File

@@ -94,3 +94,31 @@
src: tmpfs
fstype: tmpfs
opts: rw,mode=777
- name: Install scripts
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0755
owner: root
group: wheel
loop:
- src: bemount.bash
dest: /usr/local/bin/bemount
- name: Install rc script
copy:
src: "files/{{ item.src }}"
dest: "/usr/local/etc/rc.d/{{ item.dest|default(item.src) }}"
owner: root
group: wheel
mode: 0755
loop:
- src: bemount_rc.sh
dest: bemount
- name: Enable bemount
community.general.sysrc:
name: bemount_enable
value: "YES"
path: /etc/rc.conf.d/bemount