Use copy instead of template for static files

This commit is contained in:
Reynir Björnsson 2021-02-09 21:01:38 +01:00
parent 30b9580d3c
commit 6d3450d9ae
3 changed files with 18 additions and 18 deletions

View file

@ -27,38 +27,38 @@
loop_var: volume
- name: upload riot config.json
template:
src: files/configs/riot/config.json
copy:
src: configs/riot/config.json
dest: "{{ riot.volume_folder }}/data/config.json"
- name: upload riot.im.conf
template:
src: files/configs/riot/riot.im.conf
copy:
src: configs/riot/riot.im.conf
dest: "{{ riot.volume_folder }}/data/riot.im.conf"
- name: upload vhost config for root domain
template:
src: files/configs/matrix/vhost-root
copy:
src: configs/matrix/vhost-root
dest: "{{ nginx.volume_folder }}/vhost/{{ base_domain }}"
- name: upload vhost config for matrix domain
template:
src: files/configs/matrix/vhost-matrix
copy:
src: configs/matrix/vhost-matrix
dest: "{{ nginx.volume_folder }}/vhost/{{ matrix.domain }}"
- name: upload vhost config for riot domain
template:
src: files/configs/matrix/vhost-riot
copy:
src: configs/matrix/vhost-riot
dest: "{{ nginx.volume_folder }}/vhost/{{ riot.domains[0] }}"
- name: upload homeserver.yaml
template:
src: "files/configs/matrix/homeserver.yaml"
copy:
src: "configs/matrix/homeserver.yaml"
dest: "{{ matrix.volume_folder }}/data/homeserver.yaml"
- name: upload matrix logging config
template:
src: "files/configs/matrix/matrix.data.coop.log.config"
copy:
src: "configs/matrix/matrix.data.coop.log.config"
dest: "{{ matrix.volume_folder }}/data/matrix.data.coop.log.config"
- name: set up matrix and riot

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: "{{ privatebin.volume_folder }}/cfg/conf.php"
- name: privatebin app container

View file

@ -5,8 +5,8 @@
name: thelounge
- name: upload thelounge config
template:
src: files/configs/thelounge.js
copy:
src: configs/thelounge.js
dest: /var/lib/docker/volumes/thelounge/_data/config.js
- name: thelounge container