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