mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented helper role docker-central-database and refactored code
This commit is contained in:
19
roles/docker-central-database/tasks/main.yml
Normal file
19
roles/docker-central-database/tasks/main.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
# Docker Routines
|
||||
- name: "include docker-compose role"
|
||||
include_role:
|
||||
name: docker-compose
|
||||
|
||||
# Database Routines
|
||||
- name: "load variables from {{ role_path }}/vars/database.yml for whole play"
|
||||
include_vars: "{{ role_path }}/vars/database.yml"
|
||||
|
||||
- name: "create {{database_env}}"
|
||||
template:
|
||||
src: "env/{{database_type}}.env.j2"
|
||||
dest: "{{database_env}}"
|
||||
notify: docker compose project build and setup
|
||||
|
||||
- name: create central database
|
||||
include_role:
|
||||
name: docker-{{database_type}}
|
||||
when: enable_central_database | bool
|
Reference in New Issue
Block a user