Move Jinja2 template files into templates directory #137

Closed
samsapti wants to merge 9 commits from move_templates into main
17 changed files with 28 additions and 25 deletions

View file

@ -0,0 +1 @@
client_max_body_size 50M; # default is 1M

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: configs/vhost/mastodon
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.mastodon.domain }}"
- name: Copy PostgreSQL config
copy:
src: files/configs/mastodon/postgresql.conf
src: configs/mastodon/postgresql.conf
dest: "{{ services.mastodon.volume_folder }}/postgres_config/postgresql.conf"
- name: Set up Mastodon

View file

@ -29,33 +29,35 @@
- 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: configs/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: configs/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
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ item }}"
copy:
src: configs/vhost/element
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ domain }}"
loop: "{{ services.element.domains }}"
loop_control:
loop_var: domain
- 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"
- name: Upload Matrix logging config
copy:
src: configs/matrix/matrix.data.coop.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: configs/vhost/nextcloud
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: configs/privatebin/conf.php
dest: "{{ services.privatebin.volume_folder }}/cfg/conf.php"
- name: privatebin app container

View file

@ -7,7 +7,7 @@
- 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: configs/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: configs/vhost/www
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/www.{{ base_domain }}"
- name: setup data.coop website docker container