mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 12:41:05 +01:00
Implemented common docker routine
This commit is contained in:
parent
a48a0d8f92
commit
67bd15b5cf
@ -1,6 +1,7 @@
|
|||||||
# General
|
# General
|
||||||
verbose: false # Prints well formated debug information
|
verbose: false # Prints well formated debug information
|
||||||
top_domain: "localhost"
|
top_domain: "localhost"
|
||||||
|
backups_folder_path: "/Backups/"
|
||||||
|
|
||||||
# Server Tact Variables
|
# Server Tact Variables
|
||||||
|
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: receive {{ mail_interface_domain }} certificate
|
- name: receive {{ mail_interface_domain }} certificate
|
||||||
command: certbot certonly --agree-tos --email {{ administrator_email }} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{ mail_interface_domain }}
|
command: certbot certonly --agree-tos --email {{ administrator_email }} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{ mail_interface_domain }}
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,4 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
- name: include docker vars
|
||||||
|
include_vars: vars/docker-database-service.yml.j2
|
||||||
|
|
||||||
|
- name: load docker compose dependencies
|
||||||
|
include_role:
|
||||||
|
name: docker-compose
|
||||||
|
|
||||||
- name: "include task certbot-matomo.yml"
|
- name: "include task certbot-matomo.yml"
|
||||||
include_tasks: certbot-matomo.yml
|
include_tasks: certbot-matomo.yml
|
||||||
|
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- nginx-docker-reverse-proxy
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- docker-compose
|
|
||||||
- systemd-notifier
|
- systemd-notifier
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include create-domains.yml"
|
- name: "include create-domains.yml"
|
||||||
include_tasks: create-domains.yml
|
include_tasks: create-domains.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
@ -20,10 +20,10 @@
|
|||||||
image: mariadb
|
image: mariadb
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: mediawiki
|
MYSQL_DATABASE: mediawiki
|
||||||
MYSQL_ROOT_PASSWORD: "{{mediawiki_mysql_user_password}}"
|
MYSQL_ROOT_PASSWORD: "{{mediawiki_database_password}}"
|
||||||
MYSQL_USER: mediawiki
|
MYSQL_USER: mediawiki
|
||||||
MYSQL_PASSWORD: "{{mediawiki_mysql_user_password}}"
|
MYSQL_PASSWORD: "{{mediawiki_database_password}}"
|
||||||
MARIADB_AUTO_UPGRADE: "1"
|
MARIADB_AUTO_UPGRADE: "1"
|
||||||
volumes:
|
volumes:
|
||||||
- mediawiki-database:/var/lib/mysql
|
- database:/var/lib/mysql
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks create-proxy-with-domain-replace.yml"
|
- name: "include tasks create-proxy-with-domain-replace.yml"
|
||||||
include_tasks: create-proxy-with-domain-replace.yml
|
include_tasks: create-proxy-with-domain-replace.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include task certbot-matomo.yml"
|
- name: "include task certbot-matomo.yml"
|
||||||
include_tasks: certbot-matomo.yml
|
include_tasks: certbot-matomo.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include create-domains.yml"
|
- name: "include create-domains.yml"
|
||||||
include_tasks: create-domains.yml
|
include_tasks: create-domains.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- docker-compose
|
|
@ -1,11 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
@ -1,15 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: "include docker-compose-common.yml"
|
||||||
include_vars: vars/docker-database-service.yml.j2
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: load docker compose dependencies
|
|
||||||
include_role:
|
|
||||||
name: docker-compose
|
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
||||||
|
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
11
tasks/docker-compose-common.yml
Normal file
11
tasks/docker-compose-common.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
- name: include docker vars
|
||||||
|
include_vars: vars/docker-database-service.yml.j2
|
||||||
|
|
||||||
|
- name: load docker compose dependencies
|
||||||
|
include_role:
|
||||||
|
name: docker-compose
|
||||||
|
|
||||||
|
- name: create central database
|
||||||
|
include_role:
|
||||||
|
name: docker-{{database_type}}
|
||||||
|
when: enable_central_database | bool
|
Loading…
Reference in New Issue
Block a user