2024-10-06 14:56:51 -05:00
|
|
|
---
|
|
|
|
|
# tasks file for mount
|
2024-10-07 20:36:54 -05:00
|
|
|
|
|
|
|
|
- name: Set up mounts if variable is defined
|
|
|
|
|
block:
|
2025-03-20 14:45:58 -05:00
|
|
|
- include_tasks: ext4.yml
|
|
|
|
|
when: mounts.ext4 is defined
|
|
|
|
|
vars:
|
|
|
|
|
ext4_mounts: "{{ mounts.ext4 }}"
|
2024-10-07 20:36:54 -05:00
|
|
|
|
|
|
|
|
- include_tasks: nfs.yml
|
|
|
|
|
when: mounts.nfs is defined
|
|
|
|
|
vars:
|
2024-10-07 22:13:31 -05:00
|
|
|
nfs_mounts: "{{ mounts.nfs }}"
|
2024-10-07 20:36:54 -05:00
|
|
|
|
|
|
|
|
# - include_tasks: sshfs.yml
|
2025-03-20 14:45:58 -05:00
|
|
|
# when: mounts.sshfs is defined
|
|
|
|
|
# vars:
|
|
|
|
|
# sshfs_mounts: "{{ mounts.sshfs }}"
|
|
|
|
|
|
|
|
|
|
- include_tasks: bind.yml
|
|
|
|
|
when: mounts.bind is defined
|
|
|
|
|
vars:
|
|
|
|
|
bind_mounts: "{{ mounts.bind }}"
|
2024-10-07 20:36:54 -05:00
|
|
|
|
|
|
|
|
when: mounts is defined
|