Use subfolders for templates as well

This commit is contained in:
Sam A. 2023-08-05 19:35:55 +02:00
parent f9946e72ca
commit 4e6f18311d
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
14 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@
- name: Create env file - name: Create env file
template: template:
src: byro.env.j2 src: byro/env.j2
dest: "{{ services.byro.volume_folder }}/env" dest: "{{ services.byro.volume_folder }}/env"
- name: Deploy entrypoint file - name: Deploy entrypoint file

View file

@ -25,7 +25,7 @@
- name: upload mailu.env file - name: upload mailu.env file
template: template:
src: mailu.env.j2 src: mailu/env.j2
dest: "{{ services.mailu.volume_folder }}/mailu.env" dest: "{{ services.mailu.volume_folder }}/mailu.env"
- name: hard link to Let's Encrypt TLS certificate - name: hard link to Let's Encrypt TLS certificate

View file

@ -31,7 +31,7 @@
- name: Copy mastodon environment file - name: Copy mastodon environment file
template: template:
src: mastodon.env.j2 src: mastodon/env.j2
dest: "{{ services.mastodon.volume_folder }}/env_file" dest: "{{ services.mastodon.volume_folder }}/env_file"
- name: Upload vhost config for root domain - name: Upload vhost config for root domain

View file

@ -29,7 +29,7 @@
- name: Upload Element config.json - name: Upload Element config.json
template: template:
src: element.config.json.j2 src: element/config.json.j2
dest: "{{ services.element.volume_folder }}/data/config.json" dest: "{{ services.element.volume_folder }}/data/config.json"
- name: Upload Element riot.im.conf - name: Upload Element riot.im.conf
@ -50,7 +50,7 @@
- name: Upload homeserver.yaml - name: Upload homeserver.yaml
template: template:
src: matrix.homeserver.yaml.j2 src: matrix/homeserver.yaml.j2
dest: "{{ services.matrix.volume_folder }}/data/homeserver.yaml" dest: "{{ services.matrix.volume_folder }}/data/homeserver.yaml"
- name: upload matrix logging config - name: upload matrix logging config

View file

@ -7,7 +7,7 @@
- name: Copy Rallly environment file - name: Copy Rallly environment file
template: template:
src: rallly.env.j2 src: rallly/env.j2
dest: "{{ services.rallly.volume_folder }}/env_file" dest: "{{ services.rallly.volume_folder }}/env_file"
- name: Set up Rallly - name: Set up Rallly

View file

@ -33,7 +33,7 @@
- name: Create SSH config - name: Create SSH config
template: template:
src: restic.ssh.config.j2 src: restic/ssh.config.j2
dest: "{{ services.restic.volume_folder }}/ssh/config" dest: "{{ services.restic.volume_folder }}/ssh/config"
owner: root owner: root
group: root group: root
@ -41,7 +41,7 @@
- name: Create SSH known_hosts file - name: Create SSH known_hosts file
template: template:
src: restic.ssh.known_hosts.j2 src: restic/ssh.known_hosts.j2
dest: "{{ services.restic.volume_folder }}/ssh/known_hosts" dest: "{{ services.restic.volume_folder }}/ssh/known_hosts"
owner: root owner: root
group: root group: root