Adding a task subset for host volume setup
This commit is contained in:
parent
153ea8e982
commit
311a592d6e
@ -7,5 +7,6 @@
|
|||||||
- setup
|
- setup
|
||||||
- nomad
|
- nomad
|
||||||
- proxy
|
- proxy
|
||||||
|
- volumes
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
name: local-server-head
|
name: local-server-head
|
||||||
|
@ -31,3 +31,11 @@
|
|||||||
become: true
|
become: true
|
||||||
tags:
|
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
|
@ -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
|
@ -0,0 +1 @@
|
|||||||
|
host_vol_root: /opt/volumes
|
Loading…
Reference in New Issue
Block a user