19 lines
430 B
YAML
19 lines
430 B
YAML
- name: Ensure base NFS directory exist
|
|
ansible.builtin.file:
|
|
path: "{{ item.dest }}"
|
|
state: directory
|
|
become: true
|
|
- name: Ensure source NFS directory exist
|
|
ansible.builtin.file:
|
|
path: "{{ item.source }}"
|
|
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
|