role-mount/tasks/main.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

26 lines
588 B
YAML

---
# tasks file for mount
- name: Set up mounts if variable is defined
block:
- include_tasks: ext4.yml
when: mounts.ext4 is defined
vars:
ext4_mounts: "{{ mounts.ext4 }}"
- include_tasks: nfs.yml
when: mounts.nfs is defined
vars:
nfs_mounts: "{{ mounts.nfs }}"
# - include_tasks: sshfs.yml
# when: mounts.sshfs is defined
# vars:
# sshfs_mounts: "{{ mounts.sshfs }}"
- include_tasks: bind.yml
when: mounts.bind is defined
vars:
bind_mounts: "{{ mounts.bind }}"
when: mounts is defined