diff --git a/unicorn.yml b/unicorn.yml index cf990d8..8bf561f 100644 --- a/unicorn.yml +++ b/unicorn.yml @@ -4,6 +4,7 @@ become: true vars: ansible_python_interpreter: /usr/bin/python3 + data_dir: "/srv/data" roles: - role: docker_setup vars: @@ -28,5 +29,5 @@ - "3478:3478/udp" # STUN service - "6789:6789/tcp" # Speed Test (unifi5 only) volumes: - - "/srv/data/unifi-controller/data:/unifi/data" - - "/srv/data/unifi-controller/log:/unifi/log" + - "{{ data_dir }}/unifi-controller/data:/unifi/data" + - "{{ data_dir }}/unifi-controller/log:/unifi/log"