homelab/ansible/playbooks/tasks/NasBind.yml

14 lines
298 B
YAML
Raw Normal View History

2024-02-29 20:36:35 +00:00
- 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