mirror of https://gitlab.com/tildes/tildes.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
419 B
12 lines
419 B
---
|
|
- name: Install PL/Python3 procedural language for PostgreSQL
|
|
apt:
|
|
name: postgresql-plpython3-{{ postgresql_version }}
|
|
|
|
- name: Set PYTHONPATH env var for PostgreSQL
|
|
lineinfile:
|
|
path: /etc/postgresql/{{ postgresql_version }}/main/environment
|
|
regexp: "^PYTHONPATH="
|
|
line: "PYTHONPATH='{{ venv_dir }}/lib/python{{ python_version }}/site-packages:{{ app_dir }}'"
|
|
notify:
|
|
- Restart postgresql
|