configure the bridge

This commit is contained in:
histausse 2021-08-06 03:06:37 +02:00
parent 712526a714
commit 3f412974fd
Signed by: histausse
GPG key ID: 67486F107F62E9E9

View file

@ -25,4 +25,33 @@
retries: 3 retries: 3
until: apt_result is succeeded until: apt_result is succeeded
- name: Ensure the /srv folder exist
file:
path: /srv
state: directory
group: root
owner: root
mode: u=rwx,g=rx,o=rx
- name: Dowload the sources of the bot
git:
repo: 'https://github.com/t2bot/matrix-appservice-discord.git'
dest: /srv/matrix-appservice-discord
- name: Configure the bridge
template:
src: config.yaml
dest: /srv/matrix-appservice-discord/config.yaml
owner: root
group: root
mode: '0660'
- name: Generate discord-registration.yaml
debug:
msg: "TODO: Generate discord-registration.yaml"
- name:
file:
src: /srv/matrix-appservice-discord/discord-registration.yaml
dest: /etc/matrix-synapse/discord-registration.yaml
state: link