homelab/ansible/playbooks/tasks/NasBind.yml

19 lines
430 B
YAML
Raw Permalink 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
2024-03-10 13:37:00 +00:00
- name: Ensure source NFS directory exist
ansible.builtin.file:
path: "{{ item.source }}"
state: directory
become: true
2024-02-29 20:36:35 +00:00
- name: Bind NAS export
ansible.posix.mount:
path: "{{ item.dest }}"
src: "{{ item.source }}"
opts: bind
fstype: none
state: mounted
become: true