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 }}" 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

View File

@ -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 }}"