mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Big code and variable refactoring
This commit is contained in:
@@ -1,15 +1,23 @@
|
||||
---
|
||||
- name: "include docker/compose/common.yml"
|
||||
include_tasks: docker/compose/common.yml
|
||||
- name: "include docker-compose role"
|
||||
include_role:
|
||||
name: docker-compose
|
||||
|
||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||
include_tasks: nginx-docker-proxy-domain.yml
|
||||
|
||||
- name: create {{domain}}.conf
|
||||
- name: Create {{domain}}.conf if LDAP is exposed to internet
|
||||
template:
|
||||
src: "nginx.stream.conf.j2"
|
||||
dest: "{{nginx_streams_directory}}{{domain}}.conf"
|
||||
notify: restart nginx
|
||||
when: ldap_expose_to_internet | bool
|
||||
|
||||
- name: Remove {{domain}}.conf if LDAP is not exposed to internet
|
||||
file:
|
||||
path: "{{ nginx_streams_directory }}{{ domain }}.conf"
|
||||
state: absent
|
||||
when: not ldap_expose_to_internet | bool
|
||||
|
||||
- name: "create {{docker_compose_instance_directory}}"
|
||||
file:
|
||||
|
@@ -79,6 +79,7 @@ services:
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
{% include 'templates/docker/container/networks.yml.j2' %}
|
||||
central_ldap:
|
||||
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
||||
data:
|
||||
|
||||
|
Reference in New Issue
Block a user