26 lines
588 B
YAML
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
|