fix: create nomad dir in playbook with correct right

This commit is contained in:
vincent 2024-02-13 20:25:30 +01:00
parent f420f17929
commit 9756939f8e
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,3 @@
NAS_nomad_folder:
- name: openldap
owner: 1001

View File

@ -22,6 +22,13 @@
state: mounted
loop: "{{ nfs_bind_source }}"
become: true
- name: create nomad folder
file:
path: "{{ nfs_bind_target}}/nomad/{{item.name}}"
owner: "{{item.owner}}"
state: directory
loop: "{{ NAS_nomad_folder }}"
become: true
roles:
- role: ansible-role-nfs
become: true