From b839015b2853f25736886b894eb7b77b05a99670 Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 21 Jun 2020 10:22:01 -0500 Subject: [PATCH] Add part of a matrix setup --- roles/matrix/meta/main.yml | 7 +++++++ roles/matrix/tasks/main.yml | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 roles/matrix/meta/main.yml create mode 100644 roles/matrix/tasks/main.yml diff --git a/roles/matrix/meta/main.yml b/roles/matrix/meta/main.yml new file mode 100644 index 0000000..5e2c765 --- /dev/null +++ b/roles/matrix/meta/main.yml @@ -0,0 +1,7 @@ +#!/usr/bin/ansible-playbook +# vim:ft=ansible: +--- +allow_duplicates: no +dependencies: + - role: apache-php + - role: mysql diff --git a/roles/matrix/tasks/main.yml b/roles/matrix/tasks/main.yml new file mode 100644 index 0000000..cc41ce3 --- /dev/null +++ b/roles/matrix/tasks/main.yml @@ -0,0 +1,22 @@ +#!/usr/bin/ansible-playbook +# vim:ft=ansible: +--- +- name: Set up Matrix + block: + - name: Set up repos + block: + - name: Add repo keys + apt_key: + url: "{{ item }}" + loop: + - "https://packages.matrix.org/debian/matrix-org-archive-keyring.gpg" + - name: Add repos + apt_repository: + repo: "{{ item }}" + loop: + - "deb https://packages.matrix.org/debian/ bionic main" + - name: Install packages + apt: + name: + - "matrix-synapse-py3" + become: yes