Moving nomad host volume setup to its own role
Some checks failed
Ansible Linting / ansible-lint (push) Failing after 5s
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 18s

This commit is contained in:
shockrah 2025-05-25 22:56:07 -07:00
parent c6ef6ae4d2
commit be34327791
3 changed files with 7 additions and 11 deletions

View File

@ -23,11 +23,3 @@
become: true
tags:
- nomad
- name: Setup data directory for the nomad host volumes
tags: volumes
ansible.builtin.include_tasks:
file: nomad-host-volumes.yaml
apply:
become: true
tags:
- volumes

View File

@ -1,8 +1,8 @@
- name: Ensure the root data directory is present
ansible.builtin.file:
path: "{{ host_vol_root }}"
path: "{{ nomad.volumes.root }}"
state: directory
- name: Ensure registry volume is present
ansible.builtin.file:
path: "{{ host_vol_root }}/ncr"
path: "{{ nomad.volumes.registry }}"
state: directory

View File

@ -0,0 +1,4 @@
nomad:
volumes:
root: /opt/volumes
registry: /opt/volumes/ncr