fix: staging nas bind

This commit is contained in:
vincent 2024-03-10 14:37:00 +01:00
parent 4926b4eb06
commit c75e9e707a
2 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,7 @@
path: "{{ nas_bind_target }}/nomad/{{ item.name }}"
owner: "{{ item.owner }}"
state: directory
become: true
loop: "{{ NAS_nomad_folder }}"
roles:
- role: ansible-role-nut

View File

@ -3,6 +3,11 @@
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 }}"