Add part of a matrix setup
This commit is contained in:
parent
7a54fbe055
commit
b839015b28
7
roles/matrix/meta/main.yml
Normal file
7
roles/matrix/meta/main.yml
Normal file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/ansible-playbook
|
||||
# vim:ft=ansible:
|
||||
---
|
||||
allow_duplicates: no
|
||||
dependencies:
|
||||
- role: apache-php
|
||||
- role: mysql
|
22
roles/matrix/tasks/main.yml
Normal file
22
roles/matrix/tasks/main.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user