infra/ansible/roles/nomad_client/tasks/client_setup.yml

25 lines
470 B
YAML
Raw Normal View History

---
- name: setup group mappings
group:
name: "{{ item.name }}"
gid: "{{ item.id }}"
system: True
loop: "{{ nomad_ug_map }}"
- name: setup user mappings
user:
name: "{{ item.name }}"
uid: "{{ item.id }}"
system: True
loop: "{{ nomad_ug_map }}"
- name: ensure mounts
file:
state: directory
path: "{{ item.path }}"
owner: "{{ item.owner }}"
group: "{{ item.owner }}"
mode: 0755
loop: "{{ nomad_bind_mounts }}"
...