Adding a task subset for host volume setup
Some checks failed
Ansible Linting / ansible-lint (push) Failing after 6s
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 17s

This commit is contained in:
shockrah 2025-05-20 15:06:04 -07:00
parent 153ea8e982
commit 311a592d6e
4 changed files with 19 additions and 1 deletions

View File

@ -7,5 +7,6 @@
- setup
- nomad
- proxy
- volumes
ansible.builtin.include_role:
name: local-server-head

View File

@ -30,4 +30,12 @@
apply:
become: true
tags:
- proxy
- proxy
- 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

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

View File

@ -0,0 +1 @@
host_vol_root: /opt/volumes