role-mount/tasks/main.yml

21 lines
412 B
YAML
Raw Permalink Normal View History

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:
# - include_tasks: ext4.yml
# when: mounts.ext4
# with_items:
# - mounts.ext4
- 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
# loop: "{{ mounts }}"
# when: item == "sshfs"
when: mounts is defined