forked from uumas/ansible-docker
Fix some ansible-lint warnings
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
---
|
||||
|
||||
reverse_proxy_type: caddy
|
||||
|
||||
|
||||
@@ -4,4 +4,3 @@ dependencies:
|
||||
- docker
|
||||
- role: uumas.general.caddy
|
||||
when: reverse_proxy_type == 'caddy'
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
docker_container:
|
||||
name: 'element'
|
||||
image: 'vectorim/element-web:latest'
|
||||
pull: yes
|
||||
pull: true
|
||||
container_default_behavior: no_defaults
|
||||
volumes:
|
||||
- /app
|
||||
@@ -13,17 +13,17 @@
|
||||
restart_policy: always
|
||||
register: element_out
|
||||
|
||||
- set_fact:
|
||||
- name: Get element config volume path from container creation output
|
||||
set_fact:
|
||||
element_config_volume: "{{ element_out.container.Mounts | selectattr('Destination', 'equalto', '/app') | join }}"
|
||||
|
||||
- name: Read element config to variable
|
||||
include_vars:
|
||||
file: element_config.yml
|
||||
name: element_config
|
||||
include_vars: element_config.yml
|
||||
- name: Put element config in place
|
||||
copy:
|
||||
content: "{{ element_config }}"
|
||||
dest: "{{ element_config_volume.Source }}/config.json"
|
||||
mode: '644'
|
||||
|
||||
- name: Add caddy reverse proxy config
|
||||
blockinfile:
|
||||
@@ -34,6 +34,6 @@
|
||||
reverse_proxy http://127.0.0.1:{{ ports.element_http }}
|
||||
}
|
||||
validate: 'caddy validate --config %s --adapter caddyfile'
|
||||
backup: yes
|
||||
backup: true
|
||||
notify: reload caddy
|
||||
when: reverse_proxy_type == 'caddy'
|
||||
|
||||
@@ -1,34 +1,35 @@
|
||||
---
|
||||
|
||||
default_server_config:
|
||||
m.homeserver:
|
||||
base_url: "{{ matrix_external_url }}"
|
||||
server_name: "{{ matrix_domain }}"
|
||||
disable_custom_urls: yes
|
||||
disable_guests: yes
|
||||
disable_login_language_selector: false
|
||||
disable_3pid_login: true
|
||||
brand: Element
|
||||
integrations_ui_url: https://scalar.vector.im/
|
||||
integrations_rest_url: https://scalar.vector.im/api
|
||||
integrations_widgets_urls:
|
||||
- https://scalar.vector.im/_matrix/integrations/v1
|
||||
- https://scalar.vector.im/api
|
||||
- https://scalar-staging.vector.im/_matrix/integrations/v1
|
||||
- https://scalar-staging.vector.im/api
|
||||
- https://scalar-staging.riot.im/scalar/api
|
||||
bug_report_endpoint_url: https://element.io/bugreports/submit
|
||||
defaultCountryCode: GB
|
||||
showLabsSettings: no
|
||||
default_federate: yes
|
||||
default_theme: dark
|
||||
roomDirectory:
|
||||
servers:
|
||||
- "{{ matrix_domain }}"
|
||||
enable_presence_by_hs_url:
|
||||
"https://matrix.org": no
|
||||
"https://matrix-client.matrix.org": no
|
||||
settingDefaults:
|
||||
breadcrumbs: yes
|
||||
jitsi:
|
||||
preferredDomain: "{{ jitsi_domain | default('jitsi.riot.im') }}"
|
||||
element_config:
|
||||
default_server_config:
|
||||
m.homeserver:
|
||||
base_url: "{{ matrix_external_url }}"
|
||||
server_name: "{{ matrix_domain }}"
|
||||
disable_custom_urls: true
|
||||
disable_guests: true
|
||||
disable_login_language_selector: false
|
||||
disable_3pid_login: true
|
||||
brand: Element
|
||||
integrations_ui_url: https://scalar.vector.im/
|
||||
integrations_rest_url: https://scalar.vector.im/api
|
||||
integrations_widgets_urls:
|
||||
- https://scalar.vector.im/_matrix/integrations/v1
|
||||
- https://scalar.vector.im/api
|
||||
- https://scalar-staging.vector.im/_matrix/integrations/v1
|
||||
- https://scalar-staging.vector.im/api
|
||||
- https://scalar-staging.riot.im/scalar/api
|
||||
bug_report_endpoint_url: https://element.io/bugreports/submit
|
||||
"defaultCountryCode": GB
|
||||
showLabsSettings: false
|
||||
default_federate: true
|
||||
default_theme: dark
|
||||
roomDirectory:
|
||||
servers:
|
||||
- "{{ matrix_domain }}"
|
||||
enable_presence_by_hs_url:
|
||||
"https://matrix.org": false
|
||||
"https://matrix-client.matrix.org": false
|
||||
settingDefaults:
|
||||
breadcrumbs: true
|
||||
jitsi:
|
||||
preferredDomain: "{{ jitsi_domain | default('jitsi.riot.im') }}"
|
||||
|
||||
Reference in New Issue
Block a user