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 loop_var: volume
- name: upload riot config.json - name: upload riot config.json
template: copy:
src: files/configs/riot/config.json src: configs/riot/config.json
dest: "{{ riot.volume_folder }}/data/config.json" dest: "{{ riot.volume_folder }}/data/config.json"
- name: upload riot.im.conf - name: upload riot.im.conf
template: copy:
src: files/configs/riot/riot.im.conf src: configs/riot/riot.im.conf
dest: "{{ riot.volume_folder }}/data/riot.im.conf" dest: "{{ riot.volume_folder }}/data/riot.im.conf"
- name: upload vhost config for root domain - name: upload vhost config for root domain
template: copy:
src: files/configs/matrix/vhost-root src: configs/matrix/vhost-root
dest: "{{ nginx.volume_folder }}/vhost/{{ base_domain }}" dest: "{{ nginx.volume_folder }}/vhost/{{ base_domain }}"
- name: upload vhost config for matrix domain - name: upload vhost config for matrix domain
template: copy:
src: files/configs/matrix/vhost-matrix src: configs/matrix/vhost-matrix
dest: "{{ nginx.volume_folder }}/vhost/{{ matrix.domain }}" dest: "{{ nginx.volume_folder }}/vhost/{{ matrix.domain }}"
- name: upload vhost config for riot domain - name: upload vhost config for riot domain
template: copy:
src: files/configs/matrix/vhost-riot src: configs/matrix/vhost-riot
dest: "{{ nginx.volume_folder }}/vhost/{{ riot.domains[0] }}" dest: "{{ nginx.volume_folder }}/vhost/{{ riot.domains[0] }}"
- name: upload homeserver.yaml - name: upload homeserver.yaml
template: copy:
src: "files/configs/matrix/homeserver.yaml" src: "configs/matrix/homeserver.yaml"
dest: "{{ matrix.volume_folder }}/data/homeserver.yaml" dest: "{{ matrix.volume_folder }}/data/homeserver.yaml"
- name: upload matrix logging config - name: upload matrix logging config
template: copy:
src: "files/configs/matrix/matrix.data.coop.log.config" src: "configs/matrix/matrix.data.coop.log.config"
dest: "{{ matrix.volume_folder }}/data/matrix.data.coop.log.config" dest: "{{ matrix.volume_folder }}/data/matrix.data.coop.log.config"
- name: set up matrix and riot - name: set up matrix and riot

View file

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

View file

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