role-mount/tasks/bind.yml
Beth e34f8a1437 Added ext4 and bind mounts (#2)
Reviewed-on: #2
Co-authored-by: Beth <ejparker@actcur.com>
Co-committed-by: Beth <ejparker@actcur.com>
2025-03-20 14:45:58 -05:00

16 lines
No EOL
368 B
YAML

# tasks file for mounting binds
- name: create bind directory
ansible.builtin.file:
path: "/var/lib/{{ item.mount }}"
state: directory
mode: '0755'
loop: "{{ bind_mounts }}"
- name: mount bind
ansible.builtin.mount:
path: "{{ item.mount }}"
src: "{{ item.src }}"
fstype: none
opts: bind
state: mounted
loop: "{{ bind_mounts }}"