Moving nomad host volume setup to its own role
This commit is contained in:
parent
c6ef6ae4d2
commit
be34327791
@ -22,12 +22,4 @@
|
||||
apply:
|
||||
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
|
||||
- nomad
|
@ -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
|
4
ansible/roles/nomad/vars/main.yaml
Normal file
4
ansible/roles/nomad/vars/main.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
nomad:
|
||||
volumes:
|
||||
root: /opt/volumes
|
||||
registry: /opt/volumes/ncr
|
Loading…
Reference in New Issue
Block a user