mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 20:51:07 +01:00
Refactored use of variables
This commit is contained in:
parent
efb78b51be
commit
d10137a002
@ -81,7 +81,7 @@ Detailed steps for backing up your Akaunting instance, including setting manual
|
|||||||
### Setting Variables
|
### Setting Variables
|
||||||
Variables are crucial in configuring your Akaunting setup. Ensure you set the following variables correctly in your environment:
|
Variables are crucial in configuring your Akaunting setup. Ensure you set the following variables correctly in your environment:
|
||||||
|
|
||||||
- `docker_compose_akaunting_path`: Set this variable to the path where your Docker Compose files for Akaunting are located.
|
- `docker_compose_instance_directory`: Set this variable to the path where your Docker Compose files for Akaunting are located.
|
||||||
- `akaunting_db_password`, `akaunting_version`, `akaunting_company_name`, `akaunting_company_email`, `akaunting_setup_admin_email`, and `akaunting_setup_admin_password`: These should be set in your `.env` files as per your requirements.
|
- `akaunting_db_password`, `akaunting_version`, `akaunting_company_name`, `akaunting_company_email`, `akaunting_setup_admin_email`, and `akaunting_setup_admin_password`: These should be set in your `.env` files as per your requirements.
|
||||||
|
|
||||||
### Additional Configuration
|
### Additional Configuration
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: setup akaunting
|
- name: setup akaunting
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p akaunting up -d --force-recreate
|
cmd: docker-compose -p akaunting up -d --force-recreate
|
||||||
chdir: "{{docker_compose_akaunting_path}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
environment:
|
environment:
|
||||||
#AKAUNTING_SETUP: true
|
#AKAUNTING_SETUP: true
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
|
@ -8,20 +8,20 @@
|
|||||||
|
|
||||||
- name: register directory
|
- name: register directory
|
||||||
stat:
|
stat:
|
||||||
path: "{{docker_compose_akaunting_path}}"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
register: docker_compose_akaunting_path_register
|
register: docker_compose_instance_directory_register
|
||||||
|
|
||||||
- name: checkout repository
|
- name: checkout repository
|
||||||
ansible.builtin.shell: git checkout .
|
ansible.builtin.shell: git checkout .
|
||||||
become: true
|
become: true
|
||||||
args:
|
args:
|
||||||
chdir: "{{docker_compose_akaunting_path}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
when: docker_compose_akaunting_path_register.stat.exists
|
when: docker_compose_instance_directory_register.stat.exists
|
||||||
|
|
||||||
- name: pull docker repository
|
- name: pull docker repository
|
||||||
git:
|
git:
|
||||||
repo: "https://github.com/akaunting/docker.git"
|
repo: "https://github.com/akaunting/docker.git"
|
||||||
dest: "{{docker_compose_akaunting_path}}"
|
dest: "{{docker_compose_instance_directory}}"
|
||||||
update: yes
|
update: yes
|
||||||
notify: setup akaunting
|
notify: setup akaunting
|
||||||
become: true
|
become: true
|
||||||
@ -37,12 +37,12 @@
|
|||||||
ansible.builtin.shell: find . -type f -exec sed -i 's/akaunting:latest/akaunting:{{akaunting_version}}/' {} + && find . -type f -exec sed -i 's/version=latest/version={{akaunting_version}}/' {} +
|
ansible.builtin.shell: find . -type f -exec sed -i 's/akaunting:latest/akaunting:{{akaunting_version}}/' {} + && find . -type f -exec sed -i 's/version=latest/version={{akaunting_version}}/' {} +
|
||||||
become: true
|
become: true
|
||||||
args:
|
args:
|
||||||
chdir: "{{docker_compose_akaunting_path}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
|
|
||||||
- name: configure db.env
|
- name: configure db.env
|
||||||
template: src=db.env.j2 dest={{docker_compose_akaunting_path}}/env/db.env
|
template: src=db.env.j2 dest={{docker_compose_instance_directory}}/env/db.env
|
||||||
notify: setup akaunting
|
notify: setup akaunting
|
||||||
|
|
||||||
- name: configure run.env
|
- name: configure run.env
|
||||||
template: src=run.env.j2 dest={{docker_compose_akaunting_path}}/env/run.env
|
template: src=run.env.j2 dest={{docker_compose_instance_directory}}/env/run.env
|
||||||
notify: setup akaunting
|
notify: setup akaunting
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_akaunting_path: "{{path_docker_compose_files}}akaunting/"
|
docker_compose_instance_directory: "{{path_docker_compose_files}}akaunting/"
|
||||||
|
@ -22,20 +22,20 @@
|
|||||||
|
|
||||||
- name: register directory
|
- name: register directory
|
||||||
stat:
|
stat:
|
||||||
path: "{{docker_compose_attendize_path}}"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
register: docker_compose_attendize_path_register
|
register: docker_compose_instance_directory_register
|
||||||
|
|
||||||
- name: checkout repository
|
- name: checkout repository
|
||||||
ansible.builtin.shell: git checkout .
|
ansible.builtin.shell: git checkout .
|
||||||
become: true
|
become: true
|
||||||
args:
|
args:
|
||||||
chdir: "{{docker_compose_attendize_path}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
when: docker_compose_attendize_path_register.stat.exists
|
when: docker_compose_instance_directory_register.stat.exists
|
||||||
|
|
||||||
- name: checkout Attendize repository
|
- name: checkout Attendize repository
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "https://github.com/Attendize/Attendize.git"
|
repo: "https://github.com/Attendize/Attendize.git"
|
||||||
dest: "{{docker_compose_attendize_path}}"
|
dest: "{{docker_compose_instance_directory}}"
|
||||||
version: master
|
version: master
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
@ -47,5 +47,5 @@
|
|||||||
- name: create docker-compose.yml file from template
|
- name: create docker-compose.yml file from template
|
||||||
template:
|
template:
|
||||||
src: docker-compose.yml.j2
|
src: docker-compose.yml.j2
|
||||||
dest: "{{docker_compose_attendize_path}}/docker-compose.yml"
|
dest: "{{docker_compose_instance_directory}}/docker-compose.yml"
|
||||||
mode: 0644
|
mode: 0644
|
@ -1,3 +1,3 @@
|
|||||||
---
|
---
|
||||||
docker_compose_attendize_path: "{{path_docker_compose_files}}attendize/"
|
docker_compose_instance_directory: "{{path_docker_compose_files}}attendize/"
|
||||||
mail_interface_domain: "mail.{{domain}}"
|
mail_interface_domain: "mail.{{domain}}"
|
||||||
|
@ -6,20 +6,20 @@
|
|||||||
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
|
|
||||||
- name: "create {{docker_compose_path}}"
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
file:
|
file:
|
||||||
path: "{{docker_compose_path}}"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_path}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
notify: recreate baserow
|
notify: recreate baserow
|
||||||
|
|
||||||
- name: add env
|
- name: add env
|
||||||
template:
|
template:
|
||||||
src: env.j2
|
src: env.j2
|
||||||
dest: "{{docker_compose_path}}env"
|
dest: "{{docker_compose_instance_directory}}env"
|
||||||
mode: '770'
|
mode: '770'
|
||||||
force: yes
|
force: yes
|
||||||
notify: recreate baserow
|
notify: recreate baserow
|
@ -1 +1 @@
|
|||||||
docker_compose_path: "{{path_docker_compose_files}}baserow/"
|
docker_compose_instance_directory: "{{path_docker_compose_files}}baserow/"
|
@ -2,7 +2,7 @@
|
|||||||
- name: create docker-compose.yml for bigbluebutton
|
- name: create docker-compose.yml for bigbluebutton
|
||||||
command:
|
command:
|
||||||
cmd: bash ./scripts/generate-compose
|
cmd: bash ./scripts/generate-compose
|
||||||
chdir: "{{docker_compose_bigbluebutton_path}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
@ -10,7 +10,7 @@
|
|||||||
- name: docker compose up bigbluebutton
|
- name: docker compose up bigbluebutton
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p bigbluebutton up -d --force-recreate
|
cmd: docker-compose -p bigbluebutton up -d --force-recreate
|
||||||
chdir: "{{docker_compose_bigbluebutton_path}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
- name: pull docker repository
|
- name: pull docker repository
|
||||||
git:
|
git:
|
||||||
repo: "https://github.com/bigbluebutton/docker.git"
|
repo: "https://github.com/bigbluebutton/docker.git"
|
||||||
dest: "{{docker_compose_bigbluebutton_path}}"
|
dest: "{{docker_compose_instance_directory}}"
|
||||||
update: yes
|
update: yes
|
||||||
recursive: yes
|
recursive: yes
|
||||||
version: main
|
version: main
|
||||||
@ -23,5 +23,5 @@
|
|||||||
when: git_result.failed
|
when: git_result.failed
|
||||||
|
|
||||||
- name: deploy .env
|
- name: deploy .env
|
||||||
template: src=env.j2 dest={{docker_compose_bigbluebutton_path}}/.env
|
template: src=env.j2 dest={{docker_compose_instance_directory}}/.env
|
||||||
notify: setup bigbluebutton
|
notify: setup bigbluebutton
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_bigbluebutton_path: "{{path_docker_compose_files}}bigbluebutton/"
|
docker_compose_instance_directory: "{{path_docker_compose_files}}bigbluebutton/"
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate funkwhale
|
- name: recreate funkwhale
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p funkwhale up -d --force-recreate
|
cmd: docker-compose -p funkwhale up -d --force-recreate
|
||||||
chdir: "{{docker_compose_path}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
|
@ -6,20 +6,20 @@
|
|||||||
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
|
|
||||||
- name: "create {{docker_compose_path}}"
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
file:
|
file:
|
||||||
path: "{{docker_compose_path}}"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_path}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
notify: recreate funkwhale
|
notify: recreate funkwhale
|
||||||
|
|
||||||
- name: add .env
|
- name: add .env
|
||||||
template:
|
template:
|
||||||
src: env.j2
|
src: env.j2
|
||||||
dest: "{{docker_compose_path}}.env"
|
dest: "{{docker_compose_instance_directory}}.env"
|
||||||
mode: '770'
|
mode: '770'
|
||||||
force: yes
|
force: yes
|
||||||
notify: recreate funkwhale
|
notify: recreate funkwhale
|
@ -1,2 +1,2 @@
|
|||||||
docker_compose_path: "{{path_docker_compose_files}}funkwhale/"
|
docker_compose_instance_directory: "{{path_docker_compose_files}}funkwhale/"
|
||||||
client_max_body_size: "512M"
|
client_max_body_size: "512M"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## update
|
## update
|
||||||
```bash
|
```bash
|
||||||
cd {{path_docker_compose_folder}}
|
cd {{docker_compose_instance_directory}}
|
||||||
docker-compose down
|
docker-compose down
|
||||||
docker-compose pull
|
docker-compose pull
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
@ -17,7 +17,7 @@ Keep in mind to track and to don't interrupt the update process until the migrat
|
|||||||
|
|
||||||
## recreate
|
## recreate
|
||||||
```bash
|
```bash
|
||||||
cd {{path_docker_compose_folder}} && docker-compose -p gitea up -d --force-recreate
|
cd {{docker_compose_instance_directory}} && docker-compose -p gitea up -d --force-recreate
|
||||||
```
|
```
|
||||||
|
|
||||||
## database access
|
## database access
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate gitea
|
- name: recreate gitea
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p gitea up -d --force-recreate
|
cmd: docker-compose -p gitea up -d --force-recreate
|
||||||
chdir: "{{path_docker_compose_folder}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
|
@ -6,12 +6,12 @@
|
|||||||
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
|
|
||||||
- name: "create {{path_docker_compose_folder}}"
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
file:
|
file:
|
||||||
path: "{{path_docker_compose_folder}}"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{path_docker_compose_folder}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
notify: recreate gitea
|
notify: recreate gitea
|
||||||
|
@ -1 +1 @@
|
|||||||
path_docker_compose_folder: "{{path_docker_compose_files}}gitea/"
|
docker_compose_instance_directory: "{{path_docker_compose_files}}gitea/"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate joomla
|
- name: recreate joomla
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p joomla up -d --force-recreate
|
cmd: docker-compose -p joomla up -d --force-recreate
|
||||||
chdir: "{{path_docker_compose_folder}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
|
@ -6,12 +6,12 @@
|
|||||||
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
|
|
||||||
- name: "create {{path_docker_compose_folder}}"
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
file:
|
file:
|
||||||
path: "{{path_docker_compose_folder}}"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{path_docker_compose_folder}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
notify: recreate joomla
|
notify: recreate joomla
|
@ -1 +1 @@
|
|||||||
path_docker_compose_folder: "{{path_docker_compose_files}}joomla/"
|
docker_compose_instance_directory: "{{path_docker_compose_files}}joomla/"
|
||||||
|
@ -8,20 +8,20 @@
|
|||||||
dest: "/etc/nginx/conf.d/{{domain}}.conf"
|
dest: "/etc/nginx/conf.d/{{domain}}.conf"
|
||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
|
|
||||||
- name: "create {{path_docker_compose_folder}}"
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
file:
|
file:
|
||||||
path: "{{path_docker_compose_folder}}"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template:
|
template:
|
||||||
src: "docker-compose.yml.j2"
|
src: "docker-compose.yml.j2"
|
||||||
dest: "{{path_docker_compose_folder}}docker-compose.yml"
|
dest: "{{docker_compose_instance_directory}}docker-compose.yml"
|
||||||
notify: recreate listmonk
|
notify: recreate listmonk
|
||||||
|
|
||||||
- name: add config.toml
|
- name: add config.toml
|
||||||
template:
|
template:
|
||||||
src: "config.toml.j2"
|
src: "config.toml.j2"
|
||||||
dest: "{{path_docker_compose_folder}}config.toml"
|
dest: "{{docker_compose_instance_directory}}config.toml"
|
||||||
notify: recreate listmonk
|
notify: recreate listmonk
|
@ -1 +1 @@
|
|||||||
path_docker_compose_folder: "{{path_docker_compose_files}}listmonk/"
|
docker_compose_instance_directory: "{{path_docker_compose_files}}listmonk/"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate mailu
|
- name: recreate mailu
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p mailu up -d --force-recreate
|
cmd: docker-compose -p mailu up -d --force-recreate
|
||||||
chdir: "{{path_docker_compose_files}}mailu/"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 900
|
COMPOSE_HTTP_TIMEOUT: 900
|
||||||
DOCKER_CLIENT_TIMEOUT: 900
|
DOCKER_CLIENT_TIMEOUT: 900
|
||||||
|
@ -36,13 +36,13 @@
|
|||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template:
|
template:
|
||||||
src: "docker-compose.yml.j2"
|
src: "docker-compose.yml.j2"
|
||||||
dest: "{{path_docker_compose_files}}mailu/docker-compose.yml"
|
dest: "{{docker_compose_instance_directory}}docker-compose.yml"
|
||||||
notify: recreate mailu
|
notify: recreate mailu
|
||||||
|
|
||||||
- name: add mailu.env
|
- name: add mailu.env
|
||||||
template:
|
template:
|
||||||
src: "mailu.env.j2"
|
src: "mailu.env.j2"
|
||||||
dest: "{{path_docker_compose_files}}mailu/mailu.env"
|
dest: "{{docker_compose_instance_directory}}mailu.env"
|
||||||
notify: recreate mailu
|
notify: recreate mailu
|
||||||
|
|
||||||
- name: add deploy-letsencrypt-mailu.sh
|
- name: add deploy-letsencrypt-mailu.sh
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cp /etc/letsencrypt/live/{{domain}}/privkey.pem /etc/mailu/certs/key.pem || exit 1
|
cp /etc/letsencrypt/live/{{domain}}/privkey.pem /etc/mailu/certs/key.pem || exit 1
|
||||||
cp /etc/letsencrypt/live/{{domain}}/fullchain.pem /etc/mailu/certs/cert.pem || exit 1
|
cp /etc/letsencrypt/live/{{domain}}/fullchain.pem /etc/mailu/certs/cert.pem || exit 1
|
||||||
docker exec {{mailu_front_container_name}} nginx -s reload
|
cd {{docker_compose_instance_directory}} && docker compose exec front nginx -s reload || exit 1
|
||||||
|
@ -1 +1 @@
|
|||||||
mailu_front_container_name: "mailu-front-1"
|
docker_compose_instance_directory: "{{path_docker_compose_files}}mailu/"
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate mastodon
|
- name: recreate mastodon
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p mastodon up -d --force-recreate
|
cmd: docker-compose -p mastodon up -d --force-recreate
|
||||||
chdir: "{{docker_compose_mastodon_path}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
|
@ -6,19 +6,19 @@
|
|||||||
template: src=templates/mastodon.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
template: src=templates/mastodon.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
|
|
||||||
- name: "create {{docker_compose_mastodon_path}}"
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
file:
|
file:
|
||||||
path: "{{docker_compose_mastodon_path}}"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: copy docker-compose.yml
|
- name: copy docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_mastodon_path}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
notify: recreate mastodon
|
notify: recreate mastodon
|
||||||
|
|
||||||
- name: copy configuration
|
- name: copy configuration
|
||||||
template:
|
template:
|
||||||
src: .env.production.j2
|
src: .env.production.j2
|
||||||
dest: "{{docker_compose_mastodon_path}}.env.production"
|
dest: "{{docker_compose_instance_directory}}.env.production"
|
||||||
force: no
|
force: no
|
||||||
notify: recreate mastodon
|
notify: recreate mastodon
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_mastodon_path: "{{path_docker_compose_files}}mastodon/"
|
docker_compose_instance_directory: "{{path_docker_compose_files}}mastodon/"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate matomo
|
- name: recreate matomo
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p matomo up -d --force-recreate
|
cmd: docker-compose -p matomo up -d --force-recreate
|
||||||
chdir: "{{path_docker_compose_files}}matomo/"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
|
@ -8,14 +8,14 @@
|
|||||||
dest: "/etc/nginx/conf.d/{{domain}}.conf"
|
dest: "/etc/nginx/conf.d/{{domain}}.conf"
|
||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
|
|
||||||
- name: "create {{path_docker_compose_files}}matomo/"
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
file:
|
file:
|
||||||
path: "{{path_docker_compose_files}}matomo/"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template:
|
template:
|
||||||
src: "docker-compose.yml.j2"
|
src: "docker-compose.yml.j2"
|
||||||
dest: "{{path_docker_compose_files}}matomo/docker-compose.yml"
|
dest: "{{docker_compose_instance_directory}}docker-compose.yml"
|
||||||
notify: recreate matomo
|
notify: recreate matomo
|
||||||
|
2
roles/docker-matomo/vars/main.yml
Normal file
2
roles/docker-matomo/vars/main.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
docker_compose_instance_directory: "{{path_docker_compose_files}}matomo/"
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate nextcloud
|
- name: recreate nextcloud
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p nextcloud up -d --force-recreate
|
cmd: docker-compose -p nextcloud up -d --force-recreate
|
||||||
chdir: "{{path_docker_compose_files}}nextcloud/"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
|
@ -20,14 +20,14 @@
|
|||||||
dest: "{{path_docker_volumes}}nextcloud/nginx.conf"
|
dest: "{{path_docker_volumes}}nextcloud/nginx.conf"
|
||||||
notify: recreate nextcloud
|
notify: recreate nextcloud
|
||||||
|
|
||||||
- name: "create {{path_docker_compose_files}}nextcloud/"
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
file:
|
file:
|
||||||
path: "{{path_docker_compose_files}}nextcloud/"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template:
|
template:
|
||||||
src: docker-compose.yml.j2
|
src: docker-compose.yml.j2
|
||||||
dest: "{{path_docker_compose_files}}nextcloud/docker-compose.yml"
|
dest: "{{docker_compose_instance_directory}}docker-compose.yml"
|
||||||
notify: recreate nextcloud
|
notify: recreate nextcloud
|
||||||
|
2
roles/docker-nextcloud/vars/main.yml
Normal file
2
roles/docker-nextcloud/vars/main.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
docker_compose_instance_directory: "{{path_docker_compose_files}}nextcloud/"
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate peertube
|
- name: recreate peertube
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p peertube up -d --force-recreate
|
cmd: docker-compose -p peertube up -d --force-recreate
|
||||||
chdir: "{{docker_compose_peertube_path}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
|
@ -6,18 +6,18 @@
|
|||||||
template: src=templates/peertube.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
template: src=templates/peertube.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
|
|
||||||
- name: "create {{docker_compose_peertube_path}}"
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
file:
|
file:
|
||||||
path: "{{docker_compose_peertube_path}}"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: copy docker-compose.yml
|
- name: copy docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_peertube_path}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
notify: recreate peertube
|
notify: recreate peertube
|
||||||
|
|
||||||
- name: copy configuration
|
- name: copy configuration
|
||||||
template:
|
template:
|
||||||
src: env.j2
|
src: env.j2
|
||||||
dest: "{{docker_compose_peertube_path}}.env"
|
dest: "{{docker_compose_instance_directory}}.env"
|
||||||
notify: recreate peertube
|
notify: recreate peertube
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_peertube_path: "{{path_docker_compose_files}}peertube/"
|
docker_compose_instance_directory: "{{path_docker_compose_files}}peertube/"
|
||||||
|
@ -6,20 +6,20 @@
|
|||||||
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
|
|
||||||
- name: "create {{docker_compose_path}}"
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
file:
|
file:
|
||||||
path: "{{docker_compose_path}}"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_path}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
notify: recreate pixelfed
|
notify: recreate pixelfed
|
||||||
|
|
||||||
- name: add env
|
- name: add env
|
||||||
template:
|
template:
|
||||||
src: env.j2
|
src: env.j2
|
||||||
dest: "{{docker_compose_path}}env"
|
dest: "{{docker_compose_instance_directory}}env"
|
||||||
mode: '770'
|
mode: '770'
|
||||||
force: yes
|
force: yes
|
||||||
notify: recreate pixelfed
|
notify: recreate pixelfed
|
@ -1,2 +1,2 @@
|
|||||||
docker_compose_path: "{{path_docker_compose_files}}pixelfed/"
|
docker_compose_instance_directory: "{{path_docker_compose_files}}pixelfed/"
|
||||||
client_max_body_size: "512M"
|
client_max_body_size: "512M"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate and build roulette-wheel
|
- name: recreate and build roulette-wheel
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p roulette-wheel up -d --force-recreate --build
|
cmd: docker-compose -p roulette-wheel up -d --force-recreate --build
|
||||||
chdir: "{{docker_compose_path}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
@ -6,9 +6,9 @@
|
|||||||
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
|
|
||||||
- name: "create {{docker_compose_path}}"
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
file:
|
file:
|
||||||
path: "{{docker_compose_path}}"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
@ -28,9 +28,9 @@
|
|||||||
when: git_result.failed
|
when: git_result.failed
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_path}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
notify: recreate and build roulette-wheel
|
notify: recreate and build roulette-wheel
|
||||||
|
|
||||||
- name: add Dockerfile
|
- name: add Dockerfile
|
||||||
template: src=Dockerfile.j2 dest={{docker_compose_path}}Dockerfile
|
template: src=Dockerfile.j2 dest={{docker_compose_instance_directory}}Dockerfile
|
||||||
notify: recreate and build roulette-wheel
|
notify: recreate and build roulette-wheel
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
docker_compose_path: "{{path_docker_compose_files}}roulette-wheel/"
|
docker_compose_instance_directory: "{{path_docker_compose_files}}roulette-wheel/"
|
||||||
app_path: "{{path_docker_compose_files}}roulette-wheel/app/"
|
app_path: "{{path_docker_compose_files}}roulette-wheel/app/"
|
@ -2,14 +2,14 @@
|
|||||||
- name: rebuild wordpress container
|
- name: rebuild wordpress container
|
||||||
command:
|
command:
|
||||||
cmd: docker build --no-cache -t custom_wordpress .
|
cmd: docker build --no-cache -t custom_wordpress .
|
||||||
chdir: "{{docker_compose_wordpress_path}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
- name: recreate wordpress
|
- name: recreate wordpress
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p wordpress up -d --force-recreate
|
cmd: docker-compose -p wordpress up -d --force-recreate
|
||||||
chdir: "{{docker_compose_wordpress_path}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
@ -13,28 +13,28 @@
|
|||||||
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{ domain }}.conf
|
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{ domain }}.conf
|
||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
|
|
||||||
- name: "create {{docker_compose_wordpress_path}}"
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
file:
|
file:
|
||||||
path: "{{docker_compose_wordpress_path}}"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: "Transfering upload.ini to {{docker_compose_wordpress_path}}"
|
- name: "Transfering upload.ini to {{docker_compose_instance_directory}}"
|
||||||
template:
|
template:
|
||||||
src: upload.ini.j2
|
src: upload.ini.j2
|
||||||
dest: "{{docker_compose_wordpress_path}}upload.ini"
|
dest: "{{docker_compose_instance_directory}}upload.ini"
|
||||||
notify:
|
notify:
|
||||||
- recreate wordpress
|
- recreate wordpress
|
||||||
- rebuild wordpress container
|
- rebuild wordpress container
|
||||||
|
|
||||||
- name: "Transfering Dockerfile to {{docker_compose_wordpress_path}}"
|
- name: "Transfering Dockerfile to {{docker_compose_instance_directory}}"
|
||||||
copy:
|
copy:
|
||||||
src: Dockerfile
|
src: Dockerfile
|
||||||
dest: "{{docker_compose_wordpress_path}}Dockerfile"
|
dest: "{{docker_compose_instance_directory}}Dockerfile"
|
||||||
notify:
|
notify:
|
||||||
- recreate wordpress
|
- recreate wordpress
|
||||||
- rebuild wordpress container
|
- rebuild wordpress container
|
||||||
|
|
||||||
- name: "add docker-compose.yml to {{docker_compose_wordpress_path}}"
|
- name: "add docker-compose.yml to {{docker_compose_instance_directory}}"
|
||||||
template: src=docker-compose.yml.j2 dest={{docker_compose_wordpress_path}}docker-compose.yml
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
notify: recreate wordpress
|
notify: recreate wordpress
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
docker_compose_wordpress_path: "{{path_docker_compose_files}}wordpress/"
|
docker_compose_instance_directory: "{{path_docker_compose_files}}wordpress/"
|
||||||
wordpress_max_upload_size: "64M"
|
wordpress_max_upload_size: "64M"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate yourls
|
- name: recreate yourls
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p yourls up -d --force-recreate
|
cmd: docker-compose -p yourls up -d --force-recreate
|
||||||
chdir: "{{path_docker_compose_files}}yourls/"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
|
@ -8,14 +8,14 @@
|
|||||||
dest: "/etc/nginx/conf.d/{{domain}}.conf"
|
dest: "/etc/nginx/conf.d/{{domain}}.conf"
|
||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
|
|
||||||
- name: "create {{path_docker_compose_files}}yourls/"
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
file:
|
file:
|
||||||
path: "{{path_docker_compose_files}}yourls/"
|
path: "{{docker_compose_instance_directory}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template:
|
template:
|
||||||
src: "docker-compose.yml.j2"
|
src: "docker-compose.yml.j2"
|
||||||
dest: "{{path_docker_compose_files}}yourls/docker-compose.yml"
|
dest: "{{docker_compose_instance_directory}}docker-compose.yml"
|
||||||
notify: recreate yourls
|
notify: recreate yourls
|
||||||
|
1
roles/docker-yourls/vars/main.yml
Normal file
1
roles/docker-yourls/vars/main.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
docker_compose_instance_directory: "{{path_docker_compose_files}}yourls/"
|
Loading…
Reference in New Issue
Block a user