mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-07 18:57:12 +02:00
Decoupeld database, docker and proxy
This commit is contained in:
@@ -1,18 +1,3 @@
|
||||
- name: "set database_application_id (Needed due to lazzy loading issue)"
|
||||
set_fact:
|
||||
database_application_id: "{{ application_id }}"
|
||||
|
||||
- name: "Load database variables"
|
||||
include_vars: "{{ item }}"
|
||||
loop:
|
||||
- "{{ docker_var_file }}" # Important to load docker variables first so that database can use them
|
||||
- "{{ database_var_file }}" # Important to load them before docker role so that backup can use them
|
||||
|
||||
# Docker Routines
|
||||
- name: "Include docker-compose role"
|
||||
include_role:
|
||||
name: docker-compose
|
||||
|
||||
# The following env file will just be used from the dedicated mariadb container
|
||||
# and not the {{applications.mariadb.hostname }}-database
|
||||
- name: "Create {{database_env}}"
|
||||
|
@@ -1,2 +0,0 @@
|
||||
database_var_file: "{{ role_path }}/vars/database.yml"
|
||||
docker_var_file: "{{playbook_dir}}/roles/docker-compose/vars/docker-compose.yml"
|
Reference in New Issue
Block a user