ansible/roles/mounts/tasks/mountpoint.yml

16 lines
299 B
YAML

---
- name: create mountpoint directory
file:
path: "{{ item.path }}"
state: directory
- name: create mountpoint
mount:
path: "{{ item.path }}"
src: "{{ item.src }}"
fstype: "{{ item.fstype }}"
opts: "{{ item.opts }}"
passno: "{{ item.passno }}"
state: mounted