From 3f412974fdc33c1cbe4addb4bab66e28f5f1e68a Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Fri, 6 Aug 2021 03:06:37 +0200 Subject: [PATCH] configure the bridge --- roles/matrix-bridge-discord/tasks/main.yml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/roles/matrix-bridge-discord/tasks/main.yml b/roles/matrix-bridge-discord/tasks/main.yml index 4de5245..6ecbdd9 100644 --- a/roles/matrix-bridge-discord/tasks/main.yml +++ b/roles/matrix-bridge-discord/tasks/main.yml @@ -25,4 +25,33 @@ retries: 3 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