28 lines
571 B
YAML
28 lines
571 B
YAML
---
|
|
- name: setup group mappings
|
|
group:
|
|
name: "{{ item.name }}"
|
|
gid: "{{ item.id }}"
|
|
system: True
|
|
loop: "{{ nomad_ug_map }}"
|
|
when: nomad_ug_map is defined
|
|
|
|
- name: setup user mappings
|
|
user:
|
|
name: "{{ item.name }}"
|
|
uid: "{{ item.id }}"
|
|
system: True
|
|
loop: "{{ nomad_ug_map }}"
|
|
when: nomad_ug_map is defined
|
|
|
|
- name: ensure mounts
|
|
file:
|
|
state: directory
|
|
path: "{{ item.path }}"
|
|
owner: "{{ item.owner }}"
|
|
group: "{{ item.owner }}"
|
|
mode: 0755
|
|
loop: "{{ nomad_bind_mounts }}"
|
|
when: nomad_bind_mounts is defined
|
|
...
|