Просмотр исходного кода

Tie up some loose ends for matrix-appservice-discord

pull/3093/head
Slavi Pantaleev 2 лет назад
Родитель
Сommit
bf11a3c2ca
3 измененных файлов: 6 добавлений и 1 удалений
  1. +0
    -1
      group_vars/matrix_servers
  2. +5
    -0
      roles/custom/matrix-bridge-appservice-discord/tasks/setup_install.yml
  3. +1
    -0
      roles/custom/matrix-bridge-appservice-discord/tasks/validate_config.yml

+ 0
- 1
group_vars/matrix_servers Просмотреть файл

@@ -511,7 +511,6 @@ matrix_appservice_discord_systemd_required_services_list_auto: |
([devture_postgres_identifier ~ '.service'] if (devture_postgres_enabled and matrix_appservice_discord_database_hostname == devture_postgres_connection_hostname) else [])
}}


matrix_appservice_discord_container_http_host_bind_port: "{{ (matrix_playbook_service_host_bind_interface_prefix ~ '9005') if matrix_playbook_service_host_bind_interface_prefix else '' }}"

matrix_appservice_discord_container_network: "{{ matrix_addons_container_network }}"


+ 5
- 0
roles/custom/matrix-bridge-appservice-discord/tasks/setup_install.yml Просмотреть файл

@@ -104,6 +104,11 @@
/bin/sh -c "node /build/tools/addbot.js > /cfg/invite_link"
changed_when: false

- name: Ensure matrix-appservice-discord container network is created
community.general.docker_network:
name: "{{ matrix_appservice_discord_container_network }}"
driver: bridge

- name: Ensure matrix-appservice-discord.service installed
ansible.builtin.template:
src: "{{ role_path }}/templates/systemd/matrix-appservice-discord.service.j2"


+ 1
- 0
roles/custom/matrix-bridge-appservice-discord/tasks/validate_config.yml Просмотреть файл

@@ -11,6 +11,7 @@
- {'name': 'matrix_appservice_discord_appservice_token', when: true}
- {'name': 'matrix_appservice_discord_homeserver_token', when: true}
- {'name': 'matrix_appservice_discord_homeserver_domain', when: true}
- {'name': 'matrix_appservice_discord_container_network', when: true}
- {'name': 'matrix_appservice_discord_database_hostname', when: "{{ matrix_appservice_discord_database_engine == 'postgres' }}"}

- name: (Deprecation) Catch and report renamed appservice-discord variables


Загрузка…
Отмена
Сохранить