2020-10-03 21:22:04 +00:00
|
|
|
---
|
|
|
|
- name: setup group mappings
|
|
|
|
group:
|
|
|
|
name: "{{ item.name }}"
|
|
|
|
gid: "{{ item.id }}"
|
|
|
|
system: True
|
|
|
|
loop: "{{ nomad_ug_map }}"
|
2021-07-30 03:48:59 +00:00
|
|
|
when: nomad_ug_map is defined
|
2020-10-03 21:22:04 +00:00
|
|
|
|
|
|
|
- name: setup user mappings
|
|
|
|
user:
|
|
|
|
name: "{{ item.name }}"
|
|
|
|
uid: "{{ item.id }}"
|
|
|
|
system: True
|
|
|
|
loop: "{{ nomad_ug_map }}"
|
2021-07-30 03:48:59 +00:00
|
|
|
when: nomad_ug_map is defined
|
2020-10-03 21:22:04 +00:00
|
|
|
|
|
|
|
- name: ensure mounts
|
|
|
|
file:
|
|
|
|
state: directory
|
|
|
|
path: "{{ item.path }}"
|
|
|
|
owner: "{{ item.owner }}"
|
|
|
|
group: "{{ item.owner }}"
|
|
|
|
mode: 0755
|
|
|
|
loop: "{{ nomad_bind_mounts }}"
|
2021-07-30 03:48:59 +00:00
|
|
|
when: nomad_bind_mounts is defined
|
2020-10-03 21:22:04 +00:00
|
|
|
...
|