fix: staging nas bind
This commit is contained in:
parent
4926b4eb06
commit
c75e9e707a
@ -15,6 +15,7 @@
|
|||||||
path: "{{ nas_bind_target }}/nomad/{{ item.name }}"
|
path: "{{ nas_bind_target }}/nomad/{{ item.name }}"
|
||||||
owner: "{{ item.owner }}"
|
owner: "{{ item.owner }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
become: true
|
||||||
loop: "{{ NAS_nomad_folder }}"
|
loop: "{{ NAS_nomad_folder }}"
|
||||||
roles:
|
roles:
|
||||||
- role: ansible-role-nut
|
- role: ansible-role-nut
|
||||||
|
@ -3,6 +3,11 @@
|
|||||||
path: "{{ item.dest }}"
|
path: "{{ item.dest }}"
|
||||||
state: directory
|
state: directory
|
||||||
become: true
|
become: true
|
||||||
|
- name: Ensure source NFS directory exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ item.source }}"
|
||||||
|
state: directory
|
||||||
|
become: true
|
||||||
- name: Bind NAS export
|
- name: Bind NAS export
|
||||||
ansible.posix.mount:
|
ansible.posix.mount:
|
||||||
path: "{{ item.dest }}"
|
path: "{{ item.dest }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user