Przeglądaj źródła

Merge remote-tracking branch 'github/master'

pull/572/head
benkuly 5 lat temu
rodzic
commit
ab59ab5356
2 zmienionych plików z 15 dodań i 0 usunięć
  1. +6
    -0
      roles/matrix-base/defaults/main.yml
  2. +9
    -0
      roles/matrix-base/tasks/setup_matrix_base.yml

+ 6
- 0
roles/matrix-base/defaults/main.yml Wyświetl plik

@@ -59,6 +59,12 @@ matrix_riot_jitsi_preferredDomain: ''
# The Docker network that all services would be put into
matrix_docker_network: "matrix"

# Controls whether we'll preserve the vars.yml file on the Matrix server.
# If you have a differently organized inventory, you may wish to disable this feature,
# or to repoint `matrix_vars_yml_snapshotting_src` to the file you'd like to preserve.
matrix_vars_yml_snapshotting_enabled: true
matrix_vars_yml_snapshotting_src: "{{ inventory_dir }}/host_vars/{{ inventory_hostname }}/vars.yml"

# Controls whether a `/.well-known/matrix/server` file is generated and used at all.
#
# If you wish to rely on DNS SRV records only, you can disable this.


+ 9
- 0
roles/matrix-base/tasks/setup_matrix_base.yml Wyświetl plik

@@ -10,6 +10,15 @@
with_items:
- "{{ matrix_base_data_path }}"

- name: Preserve vars.yml on the server for easily restoring if it gets lost later on
copy:
src: "{{ matrix_vars_yml_snapshotting_src }}"
dest: "{{ matrix_base_data_path }}/vars.yml"
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"
mode: '0660'
when: "matrix_vars_yml_snapshotting_enabled|bool"

# `docker_network` doesn't work as expected when the given network
# is a substring of a network that already exists.
#


Ładowanie…
Anuluj
Zapisz