Add part of a matrix setup

This commit is contained in:
Salt 2020-06-21 10:22:01 -05:00
parent 7a54fbe055
commit b839015b28
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
allow_duplicates: no
dependencies:
- role: apache-php
- role: mysql

View File

@ -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