machine_setup/ansible/roles/fstab/tasks/freebsd.yaml

32 lines
622 B
YAML
Raw Normal View History

2023-05-29 04:13:57 +00:00
- name: Add fstab entries
mount:
name: "{{ item.dst }}"
src: "{{ item.src }}"
fstype: "{{ item.fstype }}"
opts: "{{ item.opts }}"
state: present
loop:
- dst: /tmp
src: tmpfs
fstype: tmpfs
opts: rw,mode=777
- dst: /var/run
src: tmpfs
fstype: tmpfs
opts: rw,mode=755
- name: Add fstab entries
when: efi_dev is defined
mount:
name: "{{ item.dst }}"
src: "{{ item.src }}"
fstype: "{{ item.fstype }}"
opts: "{{ item.opts }}"
state: present
loop:
- dst: /boot/efi
src: "{{ efi_dev }}"
fstype: msdosfs
opts: rw