fix: create nomad dir in playbook with correct right
This commit is contained in:
parent
f420f17929
commit
9756939f8e
3
ansible/group_vars/NAS/NAS
Normal file
3
ansible/group_vars/NAS/NAS
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
NAS_nomad_folder:
|
||||||
|
- name: openldap
|
||||||
|
owner: 1001
|
@ -22,6 +22,13 @@
|
|||||||
state: mounted
|
state: mounted
|
||||||
loop: "{{ nfs_bind_source }}"
|
loop: "{{ nfs_bind_source }}"
|
||||||
become: true
|
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:
|
roles:
|
||||||
- role: ansible-role-nfs
|
- role: ansible-role-nfs
|
||||||
become: true
|
become: true
|
||||||
|
Loading…
Reference in New Issue
Block a user