homelab/ansible/playbooks/tasks/NasBind.yml
2024-03-17 11:07:59 +01:00

14 lines
298 B
YAML

- name: Ensure base NFS directory exist
ansible.builtin.file:
path: "{{ item.dest }}"
state: directory
become: true
- name: Bind NAS export
ansible.posix.mount:
path: "{{ item.dest }}"
src: "{{ item.source }}"
opts: bind
fstype: none
state: mounted
become: true