|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
vars:
|
|
|
|
|
postgres_users:
|
|
|
|
|
- name: bridge_discor_user
|
|
|
|
|
password: "{{ matrix_bridge_discor_postgre_user_pwd }}"
|
|
|
|
|
password: "{{ matrix_bridge_discord_postgre_user_pwd }}"
|
|
|
|
|
databases:
|
|
|
|
|
- name: bridge_discord
|
|
|
|
|
owner: bridge_discor_user
|
|
|
|
@ -37,7 +37,14 @@
|
|
|
|
|
git:
|
|
|
|
|
repo: 'https://github.com/t2bot/matrix-appservice-discord.git'
|
|
|
|
|
dest: /srv/matrix-appservice-discord
|
|
|
|
|
notify: Re-build discord bridge
|
|
|
|
|
update: no # because this module is stupid and cannot ignore local changes
|
|
|
|
|
# notify: Re-build discord bridge
|
|
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
|
npm:
|
|
|
|
|
path: /srv/matrix-appservice-discord
|
|
|
|
|
state: latest
|
|
|
|
|
executable: /usr/bin/npm --force
|
|
|
|
|
|
|
|
|
|
- name: Build typescript
|
|
|
|
|
shell:
|
|
|
|
@ -45,11 +52,6 @@
|
|
|
|
|
chdir: /srv/matrix-appservice-discord
|
|
|
|
|
creates: /srv/matrix-appservice-discord/build
|
|
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
|
npm:
|
|
|
|
|
path: /srv/matrix-appservice-discord
|
|
|
|
|
state: latest
|
|
|
|
|
|
|
|
|
|
- name: Configure the bridge
|
|
|
|
|
template:
|
|
|
|
|
src: config.yaml
|
|
|
|
|