mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-23 21:53:21 +02:00
Update to 2022-01-28 21:00
This commit is contained in:
parent
9abf651e65
commit
f45491ce0b
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
# Synapse version to deploy
|
# Synapse version to deploy
|
||||||
synapse_version: 1.49.2
|
synapse_version: 1.51.0
|
||||||
|
|
||||||
# Should ansible handle Synapse upgrades ? If false, only initial install will be done
|
# Should ansible handle Synapse upgrades ? If false, only initial install will be done
|
||||||
synapse_manage_upgrade: True
|
synapse_manage_upgrade: True
|
||||||
|
@ -1 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- role: repo_scl # Require python > 3.6
|
||||||
|
when:
|
||||||
|
- ansible_os_family == 'RedHat'
|
||||||
|
- ansible_distribution_major_version is version('8', '<')
|
||||||
|
@ -27,12 +27,10 @@
|
|||||||
when: synapse_install_mode == 'upgrade'
|
when: synapse_install_mode == 'upgrade'
|
||||||
tags: matrix
|
tags: matrix
|
||||||
|
|
||||||
- name: Install or update dependencies in the virtual env
|
- name: Install dependencies in the virtual env
|
||||||
pip:
|
pip:
|
||||||
state: "{{ (synapse_install_mode == 'upgrade') | ternary('latest','present') }}"
|
|
||||||
virtualenv: "{{ synapse_root_dir }}/venv"
|
virtualenv: "{{ synapse_root_dir }}/venv"
|
||||||
virtualenv_command: /usr/bin/virtualenv-3
|
virtualenv_command: "{{ synapse_python }} -m venv"
|
||||||
virtualenv_python: /usr/bin/python3
|
|
||||||
name:
|
name:
|
||||||
- bleach
|
- bleach
|
||||||
- matrix-synapse-ldap3
|
- matrix-synapse-ldap3
|
||||||
@ -48,11 +46,10 @@
|
|||||||
notify: restart synapse
|
notify: restart synapse
|
||||||
tags: matrix
|
tags: matrix
|
||||||
|
|
||||||
- name: Install or update synapse in a virtualenv
|
- name: Install synapse in the virtualenv
|
||||||
pip:
|
pip:
|
||||||
virtualenv: "{{ synapse_root_dir }}/venv"
|
virtualenv: "{{ synapse_root_dir }}/venv"
|
||||||
virtualenv_command: /usr/bin/virtualenv-3
|
virtualenv_command: "{{ synapse_python }} -m venv"
|
||||||
virtualenv_python: /usr/bin/python3
|
|
||||||
name:
|
name:
|
||||||
- matrix-synapse
|
- matrix-synapse
|
||||||
version: "{{ synapse_version }}"
|
version: "{{ synapse_version }}"
|
||||||
@ -73,7 +70,7 @@
|
|||||||
- name: Install REST auth module
|
- name: Install REST auth module
|
||||||
get_url:
|
get_url:
|
||||||
url: https://raw.githubusercontent.com/ma1uta/matrix-synapse-rest-password-provider/master/rest_auth_provider.py
|
url: https://raw.githubusercontent.com/ma1uta/matrix-synapse-rest-password-provider/master/rest_auth_provider.py
|
||||||
dest: "{{ synapse_root_dir }}/venv/lib/python3.6/site-packages/"
|
dest: "{{ synapse_venv_lib_dir }}"
|
||||||
tags: matrix
|
tags: matrix
|
||||||
|
|
||||||
- name: Create the PostgreSQL role
|
- name: Create the PostgreSQL role
|
||||||
|
@ -21,9 +21,9 @@ synapse_packages:
|
|||||||
- postgresql-devel
|
- postgresql-devel
|
||||||
- libpqxx-devel
|
- libpqxx-devel
|
||||||
- jemalloc
|
- jemalloc
|
||||||
- python3-virtualenv
|
- rh-python38-python-pip
|
||||||
- python3-pip
|
- rh-python38-python-devel
|
||||||
- python-psycopg2
|
|
||||||
- python-setuptools
|
|
||||||
|
|
||||||
synapse_jemalloc: /usr/lib64/libjemalloc.so.1
|
synapse_jemalloc: /usr/lib64/libjemalloc.so.1
|
||||||
|
synapse_python: /opt/rh/rh-python38/root/usr/bin/python
|
||||||
|
synapse_venv_lib_dir: "{{ synapse_root_dir }}/venv/lib/python3.8/site-packages/"
|
||||||
|
@ -20,9 +20,9 @@ synapse_packages:
|
|||||||
- postgresql14
|
- postgresql14
|
||||||
- postgresql-devel
|
- postgresql-devel
|
||||||
- jemalloc
|
- jemalloc
|
||||||
- python3-virtualenv
|
- python39-pip
|
||||||
- python3-pip
|
- python39-devel
|
||||||
- python3-psycopg2
|
|
||||||
- python3-setuptools
|
|
||||||
|
|
||||||
synapse_jemalloc: /usr/lib64/libjemalloc.so.2
|
synapse_jemalloc: /usr/lib64/libjemalloc.so.2
|
||||||
|
synapse_python: /usr/bin/python3.9
|
||||||
|
synapse_venv_lib_dir: "{{ synapse_root_dir }}/venv/lib/python3.9/site-packages/"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user