Moving nomad host volume setup to its own role
This commit is contained in:
parent
c6ef6ae4d2
commit
be34327791
@ -23,11 +23,3 @@
|
|||||||
become: true
|
become: true
|
||||||
tags:
|
tags:
|
||||||
- nomad
|
- 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
|
|
@ -1,8 +1,8 @@
|
|||||||
- name: Ensure the root data directory is present
|
- name: Ensure the root data directory is present
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ host_vol_root }}"
|
path: "{{ nomad.volumes.root }}"
|
||||||
state: directory
|
state: directory
|
||||||
- name: Ensure registry volume is present
|
- name: Ensure registry volume is present
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ host_vol_root }}/ncr"
|
path: "{{ nomad.volumes.registry }}"
|
||||||
state: directory
|
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