role-mount/tasks/main.yml
2024-10-07 20:36:54 -05:00

20 lines
406 B
YAML

---
# tasks file for mount
- 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:
item: "{{ mounts.nfs }}"
# - include_tasks: sshfs.yml
# loop: "{{ mounts }}"
# when: item == "sshfs"
when: mounts is defined