| @@ -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 []) | ([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_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 }}" | matrix_appservice_discord_container_network: "{{ matrix_addons_container_network }}" | ||||
| @@ -104,6 +104,11 @@ | |||||
| /bin/sh -c "node /build/tools/addbot.js > /cfg/invite_link" | /bin/sh -c "node /build/tools/addbot.js > /cfg/invite_link" | ||||
| changed_when: false | 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 | - name: Ensure matrix-appservice-discord.service installed | ||||
| ansible.builtin.template: | ansible.builtin.template: | ||||
| src: "{{ role_path }}/templates/systemd/matrix-appservice-discord.service.j2" | src: "{{ role_path }}/templates/systemd/matrix-appservice-discord.service.j2" | ||||
| @@ -11,6 +11,7 @@ | |||||
| - {'name': 'matrix_appservice_discord_appservice_token', when: true} | - {'name': 'matrix_appservice_discord_appservice_token', when: true} | ||||
| - {'name': 'matrix_appservice_discord_homeserver_token', when: true} | - {'name': 'matrix_appservice_discord_homeserver_token', when: true} | ||||
| - {'name': 'matrix_appservice_discord_homeserver_domain', 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': 'matrix_appservice_discord_database_hostname', when: "{{ matrix_appservice_discord_database_engine == 'postgres' }}"} | ||||
| - name: (Deprecation) Catch and report renamed appservice-discord variables | - name: (Deprecation) Catch and report renamed appservice-discord variables | ||||