mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-24 11:06:24 +02:00
Removed whitespaces in templates:
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
- name: Setup locale.gen
|
- name: Setup locale.gen
|
||||||
template:
|
template:
|
||||||
src: locale.gen.j2
|
src: locale.gen.j2
|
||||||
dest: /etc/locale.gen
|
dest: /etc/locale.gen
|
||||||
|
|
||||||
- name: Setup locale.conf
|
- name: Setup locale.conf
|
||||||
template:
|
template:
|
||||||
src: locale.conf.j2
|
src: locale.conf.j2
|
||||||
dest: /etc/locale.conf
|
dest: /etc/locale.conf
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
name: docker-compose
|
name: docker-compose
|
||||||
|
|
||||||
- name: Create {{ domains | get_domain(application_id) }}.conf if LDAP is exposed to internet
|
- name: Create {{ domains | get_domain(application_id) }}.conf if LDAP is exposed to internet
|
||||||
template:
|
template:
|
||||||
src: "nginx.stream.conf.j2"
|
src: "nginx.stream.conf.j2"
|
||||||
dest: "{{ NGINX.DIRECTORIES.STREAMS }}{{ domains | get_domain(application_id) }}.conf"
|
dest: "{{ NGINX.DIRECTORIES.STREAMS }}{{ domains | get_domain(application_id) }}.conf"
|
||||||
notify: restart openresty
|
notify: restart openresty
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
state: directory
|
state: directory
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
- name: "For '{{ application_id }}': Create {{ database_env }}"
|
- name: "For '{{ application_id }}': Create {{ database_env }}"
|
||||||
template:
|
template:
|
||||||
src: "env/{{ database_type }}.env.j2"
|
src: "env/{{ database_type }}.env.j2"
|
||||||
dest: "{{ database_env }}"
|
dest: "{{ database_env }}"
|
||||||
notify: docker compose up
|
notify: docker compose up
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
include_tasks: 04_directories.yml
|
include_tasks: 04_directories.yml
|
||||||
|
|
||||||
- name: create nginx config file
|
- name: create nginx config file
|
||||||
template:
|
template:
|
||||||
src: nginx.conf.j2
|
src: nginx.conf.j2
|
||||||
dest: "{{ NGINX.FILES.CONFIGURATION }}"
|
dest: "{{ NGINX.FILES.CONFIGURATION }}"
|
||||||
notify: docker compose up
|
notify: docker compose up
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
- name: deploy .env
|
- name: deploy .env
|
||||||
# This seems redundant @todo Checkout if this is true and if so, delete it
|
# This seems redundant @todo Checkout if this is true and if so, delete it
|
||||||
template:
|
template:
|
||||||
src: env.j2
|
src: env.j2
|
||||||
dest: "{{ bbb_env_file_origine }}"
|
dest: "{{ bbb_env_file_origine }}"
|
||||||
|
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: "copy configuration to '{{ DISCOURSE_APPLICATION_YML_DEST }}'"
|
- name: "copy configuration to '{{ DISCOURSE_APPLICATION_YML_DEST }}'"
|
||||||
template:
|
template:
|
||||||
src: config.yml.j2
|
src: config.yml.j2
|
||||||
dest: "{{ DISCOURSE_APPLICATION_YML_DEST }}"
|
dest: "{{ DISCOURSE_APPLICATION_YML_DEST }}"
|
||||||
mode: '0640'
|
mode: '0640'
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
- name: "create {{ friendica_host_ldap_config }}"
|
- name: "create {{ friendica_host_ldap_config }}"
|
||||||
template:
|
template:
|
||||||
src: "ldapauth.config.php.j2"
|
src: "ldapauth.config.php.j2"
|
||||||
dest: "{{ friendica_host_ldap_config }}"
|
dest: "{{ friendica_host_ldap_config }}"
|
||||||
mode: '644'
|
mode: '644'
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
- name: add config.toml
|
- name: add config.toml
|
||||||
template:
|
template:
|
||||||
src: "config.toml.j2"
|
src: "config.toml.j2"
|
||||||
dest: "{{ LISTMONK_CONFIG_HOST }}"
|
dest: "{{ LISTMONK_CONFIG_HOST }}"
|
||||||
notify: docker compose up
|
notify: docker compose up
|
||||||
|
@@ -31,26 +31,26 @@
|
|||||||
loop: "{{ MATRIX_BRIDGES }}"
|
loop: "{{ MATRIX_BRIDGES }}"
|
||||||
|
|
||||||
- name: add multiple mautrix bridge configuration
|
- name: add multiple mautrix bridge configuration
|
||||||
template:
|
template:
|
||||||
src: "mautrix/{{ item.bridge_name }}.config.yml.j2"
|
src: "mautrix/{{ item.bridge_name }}.config.yml.j2"
|
||||||
dest: "{{ docker_compose.directories.instance }}mautrix/{{ item.bridge_name }}/config.yaml"
|
dest: "{{ docker_compose.directories.instance }}mautrix/{{ item.bridge_name }}/config.yaml"
|
||||||
loop: "{{ MATRIX_BRIDGES }}"
|
loop: "{{ MATRIX_BRIDGES }}"
|
||||||
notify: docker compose up
|
notify: docker compose up
|
||||||
|
|
||||||
- name: add element configuration
|
- name: add element configuration
|
||||||
template:
|
template:
|
||||||
src: "element.config.json.j2"
|
src: "element.config.json.j2"
|
||||||
dest: "{{ MATRIX_ELEMENT_CONFIG_PATH_HOST }}"
|
dest: "{{ MATRIX_ELEMENT_CONFIG_PATH_HOST }}"
|
||||||
notify: docker compose up
|
notify: docker compose up
|
||||||
|
|
||||||
- name: add synapse homeserver configuration
|
- name: add synapse homeserver configuration
|
||||||
template:
|
template:
|
||||||
src: "synapse/homeserver.yaml.j2"
|
src: "synapse/homeserver.yaml.j2"
|
||||||
dest: "{{ MATRIX_SYNAPSE_CONFIG_PATH_HOST }}"
|
dest: "{{ MATRIX_SYNAPSE_CONFIG_PATH_HOST }}"
|
||||||
notify: docker compose up
|
notify: docker compose up
|
||||||
|
|
||||||
- name: add synapse log configuration
|
- name: add synapse log configuration
|
||||||
template:
|
template:
|
||||||
src: "synapse/log.config.j2"
|
src: "synapse/log.config.j2"
|
||||||
dest: "{{ MATRIX_SYNAPSE_LOG_PATH_HOST }}"
|
dest: "{{ MATRIX_SYNAPSE_LOG_PATH_HOST }}"
|
||||||
notify: docker compose up
|
notify: docker compose up
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
cmd: "docker run --rm --mount type=volume,src={{ MATRIX_SYNAPSE_VOLUME }},dst=/data -e SYNAPSE_SERVER_NAME={{ MATRIX_SYNAPSE_DOMAIN }} -e SYNAPSE_REPORT_STATS=no --entrypoint /bin/sh matrixdotorg/synapse:latest -c 'chown -vR 991:991 /data'"
|
cmd: "docker run --rm --mount type=volume,src={{ MATRIX_SYNAPSE_VOLUME }},dst=/data -e SYNAPSE_SERVER_NAME={{ MATRIX_SYNAPSE_DOMAIN }} -e SYNAPSE_REPORT_STATS=no --entrypoint /bin/sh matrixdotorg/synapse:latest -c 'chown -vR 991:991 /data'"
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template:
|
template:
|
||||||
src: "docker-compose.yml.j2"
|
src: "docker-compose.yml.j2"
|
||||||
dest: "{{ docker_compose.directories.instance }}docker-compose.yml"
|
dest: "{{ docker_compose.directories.instance }}docker-compose.yml"
|
||||||
notify: docker compose up
|
notify: docker compose up
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
- name: create {{ MATRIX_WELL_KNOWN_FILE }}
|
- name: create {{ MATRIX_WELL_KNOWN_FILE }}
|
||||||
template:
|
template:
|
||||||
src: "well-known.j2"
|
src: "well-known.j2"
|
||||||
dest: "{{ MATRIX_WELL_KNOWN_FILE }}"
|
dest: "{{ MATRIX_WELL_KNOWN_FILE }}"
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
http_port: "{{ MATRIX_SYNAPSE_PORT }}"
|
http_port: "{{ MATRIX_SYNAPSE_PORT }}"
|
||||||
|
|
||||||
- name: create {{ MATRIX_SYNAPSE_DOMAIN }}.conf
|
- name: create {{ MATRIX_SYNAPSE_DOMAIN }}.conf
|
||||||
template:
|
template:
|
||||||
src: "templates/nginx.conf.j2"
|
src: "templates/nginx.conf.j2"
|
||||||
dest: "{{ NGINX.DIRECTORIES.HTTP.SERVERS }}{{ MATRIX_SYNAPSE_DOMAIN }}.conf"
|
dest: "{{ NGINX.DIRECTORIES.HTTP.SERVERS }}{{ MATRIX_SYNAPSE_DOMAIN }}.conf"
|
||||||
vars:
|
vars:
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
name: sys-util-csp-cert
|
name: sys-util-csp-cert
|
||||||
|
|
||||||
- name: create nextcloud proxy configuration file
|
- name: create nextcloud proxy configuration file
|
||||||
template:
|
template:
|
||||||
src: "nginx/host.conf.j2"
|
src: "nginx/host.conf.j2"
|
||||||
dest: "{{ NEXTCLOUD_HOST_NGINX_PATH }}"
|
dest: "{{ NEXTCLOUD_HOST_NGINX_PATH }}"
|
||||||
notify: restart openresty
|
notify: restart openresty
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
notify: docker compose up
|
notify: docker compose up
|
||||||
|
|
||||||
- name: create internal nextcloud nginx configuration
|
- name: create internal nextcloud nginx configuration
|
||||||
template:
|
template:
|
||||||
src: "nginx/docker.conf.j2"
|
src: "nginx/docker.conf.j2"
|
||||||
dest: "{{ [docker_compose.directories.volumes, 'nginx.conf'] | path_join }}"
|
dest: "{{ [docker_compose.directories.volumes, 'nginx.conf'] | path_join }}"
|
||||||
notify: restart nextcloud nginx service
|
notify: restart nextcloud nginx service
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
name: sys-util-csp-cert
|
name: sys-util-csp-cert
|
||||||
|
|
||||||
- name: configure {{ domain }}.conf
|
- name: configure {{ domain }}.conf
|
||||||
template:
|
template:
|
||||||
src: "templates/peertube.conf.j2"
|
src: "templates/peertube.conf.j2"
|
||||||
dest: "{{ [ NGINX.DIRECTORIES.HTTP.SERVERS, domain ~ '.conf'] | path_join }}"
|
dest: "{{ [ NGINX.DIRECTORIES.HTTP.SERVERS, domain ~ '.conf'] | path_join }}"
|
||||||
notify: restart openresty
|
notify: restart openresty
|
||||||
|
@@ -4,13 +4,13 @@
|
|||||||
name: sys-stk-back-stateful
|
name: sys-stk-back-stateful
|
||||||
|
|
||||||
- name: configure {{ domain }}.conf
|
- name: configure {{ domain }}.conf
|
||||||
template:
|
template:
|
||||||
src: "templates/proxy.conf.j2"
|
src: "templates/proxy.conf.j2"
|
||||||
dest: "{{ [ NGINX.DIRECTORIES.HTTP.SERVERS, domain ~ '.conf'] | path_join }}"
|
dest: "{{ [ NGINX.DIRECTORIES.HTTP.SERVERS, domain ~ '.conf'] | path_join }}"
|
||||||
notify: restart openresty
|
notify: restart openresty
|
||||||
|
|
||||||
- name: "create {{ docker_compose.files.env }}"
|
- name: "create {{ docker_compose.files.env }}"
|
||||||
template:
|
template:
|
||||||
src: "database.j2"
|
src: "database.j2"
|
||||||
dest: "{{ docker_compose.files.env }}"
|
dest: "{{ docker_compose.files.env }}"
|
||||||
mode: "0770"
|
mode: "0770"
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: copy imprint.html
|
- name: copy imprint.html
|
||||||
template:
|
template:
|
||||||
src: "imprint.html.j2"
|
src: "imprint.html.j2"
|
||||||
dest: "{{NGINX.DIRECTORIES.DATA.HTML}}imprint.html"
|
dest: "{{NGINX.DIRECTORIES.DATA.HTML}}imprint.html"
|
||||||
owner: "{{ NGINX.USER }}"
|
owner: "{{ NGINX.USER }}"
|
||||||
|
Reference in New Issue
Block a user