---
# 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: 
       nfs_mounts: "{{ mounts.nfs }}"

#    - include_tasks: sshfs.yml
#      loop: "{{ mounts }}"
#      when: item == "sshfs"

  when: mounts is defined