mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-29 16:01:04 +01:00
Compare commits
No commits in common. "fe0ee86319ac711ae2b835c756ed288a3cbfceee" and "db38b72373691b31a015e5698a1a04d350045b6d" have entirely different histories.
fe0ee86319
...
db38b72373
@ -1,7 +1,6 @@
|
|||||||
# General
|
# General
|
||||||
reset_files: false # Cleans up all CyMaIS files. It's necessary to run to whole playbook and not particial roles when using this function.
|
reset_files: false # Cleans up all CyMaIS files. It's necessary to run to whole playbook and not particial roles when using this function.
|
||||||
verbose: false # Prints well formated debug information
|
verbose: false # Prints well formated debug information
|
||||||
test_run: false # Executes test routines instead of productive routines
|
|
||||||
database_delay: "0" # Database delay to wait for the central database before continue tasks
|
database_delay: "0" # Database delay to wait for the central database before continue tasks
|
||||||
top_domain: "localhost" # Change this in inventory to your domain
|
top_domain: "localhost" # Change this in inventory to your domain
|
||||||
ip4_address: "127.0.0.1" # Change thie in inventory to the ip address of your server
|
ip4_address: "127.0.0.1" # Change thie in inventory to the ip address of your server
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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,13 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
|
- 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 }}
|
||||||
|
|
||||||
|
- name: receive {{ domain }} certificate
|
||||||
|
command: certbot certonly --agree-tos --email {{ administrator_email }} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{ domain }}
|
||||||
|
|
||||||
- name: "include tasks to receive attendize certbot certificate"
|
|
||||||
include_tasks: recieve-certbot-certificate.yml
|
|
||||||
vars:
|
|
||||||
domain: "{{ item }}"
|
|
||||||
loop:
|
|
||||||
- "{{ mail_interface_domain }}"
|
|
||||||
- "{{ domain }}"
|
|
||||||
|
|
||||||
- name: configure {{domain}}.conf
|
- name: configure {{domain}}.conf
|
||||||
template:
|
template:
|
||||||
src: roles/nginx-docker-reverse-proxy/templates/domain.conf.j2
|
src: roles/nginx-docker-reverse-proxy/templates/domain.conf.j2
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
|
file:
|
||||||
|
path: "{{docker_compose_instance_directory}}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: include docker vars
|
- name: include docker vars
|
||||||
include_vars: vars/docker-common.yml.j2
|
include_vars: vars/docker-database-service.yml.j2
|
||||||
|
|
||||||
- name: load docker compose dependencies
|
- name: load docker compose dependencies
|
||||||
include_role:
|
include_role:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: recreate discourse
|
- name: recreate discourse
|
||||||
command:
|
command:
|
||||||
cmd: ./launcher rebuild discourse_application
|
cmd: ./launcher rebuild app
|
||||||
chdir: "{{discourse_repository_directory}}"
|
chdir: "{{discourse_repository_directory}}"
|
||||||
|
@ -6,29 +6,17 @@
|
|||||||
name: which
|
name: which
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
- name: "stop container discourse_application"
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
command:
|
file:
|
||||||
cmd: "docker stop discourse_application"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
ignore_errors: true
|
state: directory
|
||||||
when: reset_files | bool
|
mode: 0755
|
||||||
|
|
||||||
- name: "rm container discourse_application"
|
|
||||||
command:
|
|
||||||
cmd: "docker rm discourse_application"
|
|
||||||
ignore_errors: true
|
|
||||||
when: reset_files | bool
|
|
||||||
|
|
||||||
- name: "cleanup central database from {{docker_compose_project_name}}_default network"
|
|
||||||
command:
|
|
||||||
cmd: "docker network disconnect discourse_default central-{{ database_type }}"
|
|
||||||
ignore_errors: true
|
|
||||||
when: reset_files | bool
|
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
@ -53,12 +41,18 @@
|
|||||||
mode: '700'
|
mode: '700'
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: "copy configuration to {{discourse_repository_directory}}containers/discourse_application.yml"
|
- name: "copy configuration to {{discourse_repository_directory}}containers/app.yml"
|
||||||
template:
|
template:
|
||||||
src: discourse_application.yml.j2
|
src: app.yml.j2
|
||||||
dest: "{{discourse_repository_directory}}containers/discourse_application.yml"
|
dest: "{{discourse_repository_directory}}containers/app.yml"
|
||||||
notify: recreate discourse
|
notify: recreate discourse
|
||||||
|
|
||||||
|
- name: "Ensure {{docker_compose_project_name}}_default network exists"
|
||||||
|
community.docker.docker_network:
|
||||||
|
name: "{{docker_compose_project_name}}_default"
|
||||||
|
state: present
|
||||||
|
when: enable_central_database | bool
|
||||||
|
|
||||||
- name: "add central database temporary to {{docker_compose_project_name}}_default"
|
- name: "add central database temporary to {{docker_compose_project_name}}_default"
|
||||||
command:
|
command:
|
||||||
cmd: "docker network connect discourse_default central-{{ database_type }}"
|
cmd: "docker network connect discourse_default central-{{ database_type }}"
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
|
file:
|
||||||
|
path: "{{docker_compose_instance_directory}}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
|
file:
|
||||||
|
path: "{{docker_compose_instance_directory}}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
|
file:
|
||||||
|
path: "{{docker_compose_instance_directory}}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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
|
||||||
@ -8,6 +8,11 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
loop_var: domain
|
loop_var: domain
|
||||||
|
|
||||||
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
|
file:
|
||||||
|
path: "{{docker_compose_instance_directory}}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
|
file:
|
||||||
|
path: "{{docker_compose_instance_directory}}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template:
|
template:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: "include create-domains.yml"
|
- name: "include create-domains.yml"
|
||||||
include_tasks: create-domains.yml
|
include_tasks: create-domains.yml
|
||||||
@ -8,6 +8,12 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
loop_var: domain
|
loop_var: domain
|
||||||
|
|
||||||
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
|
file:
|
||||||
|
path: "{{docker_compose_instance_directory}}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: copy docker-compose.yml
|
- name: copy docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
notify: docker compose project setup
|
notify: docker compose project setup
|
||||||
|
@ -1,10 +1,16 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
|
file:
|
||||||
|
path: "{{docker_compose_instance_directory}}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template:
|
template:
|
||||||
src: "docker-compose.yml.j2"
|
src: "docker-compose.yml.j2"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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
|
||||||
@ -14,6 +14,11 @@
|
|||||||
domain: "{{element_domain}}"
|
domain: "{{element_domain}}"
|
||||||
http_port: "{{element_http_port}}"
|
http_port: "{{element_http_port}}"
|
||||||
|
|
||||||
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
|
file:
|
||||||
|
path: "{{docker_compose_instance_directory}}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
#- name: "create {{docker_compose_instance_directory}}mautrix_whatsapp"
|
#- name: "create {{docker_compose_instance_directory}}mautrix_whatsapp"
|
||||||
# file:
|
# file:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: "include task certbot-matomo.yml"
|
- name: "include task certbot-matomo.yml"
|
||||||
include_tasks: certbot-matomo.yml
|
include_tasks: certbot-matomo.yml
|
||||||
@ -11,12 +11,23 @@
|
|||||||
dest: "{{nginx_servers_directory}}{{domain}}.conf"
|
dest: "{{nginx_servers_directory}}{{domain}}.conf"
|
||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
|
|
||||||
|
- name: "create {{path_docker_volumes}}nextcloud/"
|
||||||
|
file:
|
||||||
|
path: "{{path_docker_volumes}}nextcloud"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: configure nginx.conf
|
- name: configure nginx.conf
|
||||||
template:
|
template:
|
||||||
src: "templates/nginx.conf.j2"
|
src: "templates/nginx.conf.j2"
|
||||||
dest: "{{path_docker_volumes}}nextcloud/nginx.conf"
|
dest: "{{path_docker_volumes}}nextcloud/nginx.conf"
|
||||||
notify: docker compose project setup
|
notify: docker compose project setup
|
||||||
|
|
||||||
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
|
file:
|
||||||
|
path: "{{docker_compose_instance_directory}}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template:
|
template:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- name: "include create-domains.yml"
|
- name: "include create-domains.yml"
|
||||||
include_tasks: create-domains.yml
|
include_tasks: create-domains.yml
|
||||||
@ -8,6 +8,11 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
loop_var: domain
|
loop_var: domain
|
||||||
|
|
||||||
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
|
file:
|
||||||
|
path: "{{docker_compose_instance_directory}}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: copy docker-compose.yml
|
- name: copy docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
|
@ -1,10 +1,16 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
|
file:
|
||||||
|
path: "{{docker_compose_instance_directory}}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
notify: docker compose project setup
|
notify: docker compose project setup
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-common.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: docker-compose-common.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
|
||||||
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
|
file:
|
||||||
|
path: "{{docker_compose_instance_directory}}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: pull app repository
|
- name: pull app repository
|
||||||
git:
|
git:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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
|
||||||
@ -10,6 +10,12 @@
|
|||||||
vars:
|
vars:
|
||||||
nginx_docker_reverse_proxy_extra_configuration: "client_max_body_size {{wordpress_max_upload_size}};"
|
nginx_docker_reverse_proxy_extra_configuration: "client_max_body_size {{wordpress_max_upload_size}};"
|
||||||
|
|
||||||
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
|
file:
|
||||||
|
path: "{{docker_compose_instance_directory}}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: "Transfering upload.ini to {{docker_compose_instance_directory}}"
|
- name: "Transfering upload.ini to {{docker_compose_instance_directory}}"
|
||||||
template:
|
template:
|
||||||
src: upload.ini.j2
|
src: upload.ini.j2
|
||||||
|
@ -1,10 +1,16 @@
|
|||||||
---
|
---
|
||||||
- name: "include docker-compose-database.yml"
|
- name: "include docker-compose-common.yml"
|
||||||
include_tasks: docker-compose-database.yml
|
include_tasks: docker-compose-common.yml
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
|
file:
|
||||||
|
path: "{{docker_compose_instance_directory}}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template:
|
template:
|
||||||
src: "docker-compose.yml.j2"
|
src: "docker-compose.yml.j2"
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: "include task receive certbot certificate"
|
- name: recieve redirect source certificates
|
||||||
include_tasks: recieve-certbot-certificate.yml
|
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{item.source}}
|
||||||
vars:
|
loop: "{{domain_mappings}}"
|
||||||
domain: "{{ domain }}"
|
|
||||||
|
|
||||||
- name: configure nginx redirect configurations
|
- name: configure nginx redirect configurations
|
||||||
vars:
|
vars:
|
||||||
|
@ -1,18 +1,11 @@
|
|||||||
- name: include docker vars
|
- name: include docker vars
|
||||||
include_vars: vars/docker-common.yml.j2
|
include_vars: vars/docker-database-service.yml.j2
|
||||||
|
|
||||||
- name: load docker compose dependencies
|
- name: load docker compose dependencies
|
||||||
include_role:
|
include_role:
|
||||||
name: docker-compose
|
name: docker-compose
|
||||||
|
|
||||||
- name: "remove {{ docker_compose_instance_directory }} and all its contents"
|
- name: create central database
|
||||||
file:
|
include_role:
|
||||||
path: "{{ docker_compose_instance_directory }}"
|
name: docker-{{database_type}}
|
||||||
state: absent
|
when: enable_central_database | bool
|
||||||
when: reset_files | bool
|
|
||||||
|
|
||||||
- name: "create {{docker_compose_instance_directory}}"
|
|
||||||
file:
|
|
||||||
path: "{{docker_compose_instance_directory}}"
|
|
||||||
state: directory
|
|
||||||
mode: 0755
|
|
@ -1,10 +0,0 @@
|
|||||||
- name: include docker vars/docker-database.yml.j2
|
|
||||||
include_vars: vars/docker-database.yml.j2
|
|
||||||
|
|
||||||
- name: "include docker-compose-common.yml"
|
|
||||||
include_tasks: docker-compose-common.yml
|
|
||||||
|
|
||||||
- name: create central database
|
|
||||||
include_role:
|
|
||||||
name: docker-{{database_type}}
|
|
||||||
when: enable_central_database | bool
|
|
@ -1,5 +1,2 @@
|
|||||||
- name: recieve certbot certificate for {{ domain }}
|
- name: recieve certbot certificate for {{domain}}
|
||||||
command: >-
|
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{domain}}
|
||||||
certbot certonly --agree-tos --email {{ administrator_email }}
|
|
||||||
--non-interactive --webroot -w /var/lib/letsencrypt/ -d {{ domain }}
|
|
||||||
{{ '--test-cert' if test_run | bool else '' }}
|
|
@ -1 +0,0 @@
|
|||||||
docker_compose_instance_directory: "{{ path_docker_compose_instances + docker_compose_project_name + '/' }}"
|
|
@ -1,5 +1,6 @@
|
|||||||
|
docker_compose_instance_directory: "{{ path_docker_compose_instances + docker_compose_project_name + '/' }}"
|
||||||
database_instance: "{{ 'central-' + database_type if enable_central_database else docker_compose_project_name }}"
|
database_instance: "{{ 'central-' + database_type if enable_central_database else docker_compose_project_name }}"
|
||||||
database_host: "{{ 'central-' + database_type if enable_central_database else 'database' }}"
|
database_host: "{{ 'central-' + database_type if enable_central_database else 'database' }}"
|
||||||
database_name: "{{ docker_compose_project_name }}"
|
database_name: "{{ docker_compose_project_name }}"
|
||||||
database_username: "{{ docker_compose_project_name }}"
|
database_username: "{{ docker_compose_project_name }}"
|
||||||
database_version: "{{ postgres_default_version }}"
|
database_version: "{{ postgres_default_version }}"
|
Loading…
Reference in New Issue
Block a user