diff --git a/roles/manager/defaults/main.yml b/roles/manager/defaults/main.yml index 6c39bc161..75e6f38fa 100644 --- a/roles/manager/defaults/main.yml +++ b/roles/manager/defaults/main.yml @@ -40,6 +40,7 @@ state_directory: /opt/state manager_docker_compose_directory: /opt/manager manager_configuration_directory: /opt/manager/configuration +manager_data_directory: /opt/manager/data manager_secrets_directory: /opt/manager/secrets ########################## diff --git a/roles/manager/tasks/config.yml b/roles/manager/tasks/config.yml index cdf668e3e..2d4661b01 100644 --- a/roles/manager/tasks/config.yml +++ b/roles/manager/tasks/config.yml @@ -11,6 +11,7 @@ - "{{ ansible_directory }}" - "{{ archive_directory }}" - "{{ manager_configuration_directory }}" + - "{{ manager_data_directory }}" - "{{ manager_docker_compose_directory }}" - "{{ manager_secrets_directory }}" - "{{ secrets_directory }}" diff --git a/roles/manager/templates/docker-compose.yml.j2 b/roles/manager/templates/docker-compose.yml.j2 index b3b7065c0..2580a0afe 100644 --- a/roles/manager/templates/docker-compose.yml.j2 +++ b/roles/manager/templates/docker-compose.yml.j2 @@ -300,6 +300,7 @@ services: - "share:/share" - "{{ configuration_directory }}:/opt/configuration:ro" - "{{ secrets_directory }}:/ansible/secrets:ro" + - "{{ manager_data_directory }}:/data:ro" {% if flower_enable|bool %} ##########################################