Move files to their correct directories (files in files, Jinja2 templates in templates)

This commit is contained in:
Sam A. 2023-07-09 20:27:32 +02:00
parent c5857d0ba8
commit 863b285b07
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
27 changed files with 37 additions and 38 deletions

View file

@ -5,4 +5,3 @@
name: "nginx-proxy"
restart: "yes"
state: "started"

View file

@ -12,7 +12,7 @@
- name: Deploy entrypoint file
copy:
src: byro_deploy_entrypoint.sh
src: byro/deploy_entrypoint.sh
dest: "{{ services.byro.volume_folder}}/data/deploy_entrypoint.sh"
mode: u=rwx,g=rx,o=rx

View file

@ -1,9 +1,9 @@
# vim: ft=yaml.ansible
---
- name: copy docker registry nginx configuration
- name: copy docker registry vhost configuration
copy:
src: "files/configs/docker_registry/nginx.conf"
dest: "/docker-volumes/nginx/vhost/{{ services.docker_registry.domain }}"
src: vhost/docker
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.docker_registry.domain }}"
mode: "0644"
- name: docker registry container

View file

@ -12,7 +12,7 @@
- name: copy sso public certificate
copy:
src: "files/sso/sso.data.coop.pem"
src: sso/sso.data.coop.pem
dest: "{{ services.hedgedoc.volume_folder }}/sso.data.coop.pem"
mode: "0644"

View file

@ -106,7 +106,7 @@
admin:
image: ghcr.io/mailu/admin:{{ services.mailu.version }}
restart: always
env_file: "{{ services.mailu.volume_folder}}/mailu.env"
env_file: "{{ services.mailu.volume_folder }}/mailu.env"
volumes:
- "{{ services.mailu.volume_folder }}/data:/data"
- "{{ services.mailu.volume_folder }}/dkim:/dkim"

View file

@ -16,17 +16,17 @@
- name: Copy mastodon environment file
template:
src: files/configs/mastodon/env_file.j2
src: mastodon.env.j2
dest: "{{ services.mastodon.volume_folder }}/env_file"
- name: Upload vhost config for root domain
template:
src: files/configs/mastodon/vhost-mastodon
copy:
src: vhost/social
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.mastodon.domain }}"
- name: Copy PostgreSQL config
copy:
src: files/configs/mastodon/postgresql.conf
src: mastodon/postgresql.conf
dest: "{{ services.mastodon.volume_folder }}/postgres_config/postgresql.conf"
- name: Set up Mastodon

View file

@ -29,33 +29,33 @@
- name: Upload Element config.json
template:
src: files/configs/element/config.json
src: element.config.json.j2
dest: "{{ services.element.volume_folder }}/data/config.json"
- name: Upload Element riot.im.conf
template:
src: files/configs/element/riot.im.conf
copy:
src: element/riot.im.conf
dest: "{{ services.element.volume_folder }}/data/riot.im.conf"
- name: upload vhost config for matrix domain
template:
src: files/configs/matrix/vhost-matrix
copy:
src: vhost/matrix
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.matrix.domain }}"
- name: Upload vhost config for Element domain
template:
src: files/configs/matrix/vhost-element
copy:
src: vhost/element
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ item }}"
loop: "{{ services.element.domains }}"
- name: Upload homeserver.yaml
template:
src: "files/configs/matrix/homeserver.yaml.j2"
src: matrix.homeserver.yaml.j2
dest: "{{ services.matrix.volume_folder }}/data/homeserver.yaml"
- name: upload matrix logging config
template:
src: "files/configs/matrix/matrix.data.coop.log.config"
copy:
src: matrix/log.config
dest: "{{ services.matrix.volume_folder }}/data/matrix.data.coop.log.config"
- name: Set up Matrix and Element

View file

@ -1,8 +1,8 @@
# vim: ft=yaml.ansible
---
- name: upload vhost config for cloud.data.coop
template:
src: files/configs/nextcloud/vhost
copy:
src: vhost/cloud
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.nextcloud.domain }}"
notify: "restart nginx"

View file

@ -11,8 +11,8 @@
loop_var: volume
- name: upload privatebin config
template:
src: files/configs/privatebin-conf.php
copy:
src: privatebin/conf.php
dest: "{{ services.privatebin.volume_folder }}/cfg/conf.php"
- name: privatebin app container

View file

@ -1,13 +1,13 @@
# vim: ft=yaml.ansible
---
- name: Create rallly volume folders
- name: Create Rallly volume folders
file:
name: "{{ services.rallly.volume_folder }}/postgres"
state: directory
- name: Copy Rallly environment file
template:
src: files/configs/rallly/env_file.j2
src: rallly.env.j2
dest: "{{ services.rallly.volume_folder }}/env_file"
- name: Set up Rallly

View file

@ -2,12 +2,12 @@
---
- name: Upload vhost config for root domain
copy:
src: files/configs/matrix/vhost-root
src: vhost/_root
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ base_domain }}"
- name: Upload vhost config for WWW domain
copy:
src: files/configs/vhost-www
src: vhost/www
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/www.{{ base_domain }}"
- name: setup data.coop website docker container