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

  1. ---
  2. - name: Install PL/Python3 procedural language for PostgreSQL
  3. apt:
  4. name: postgresql-plpython3-{{ postgresql_version }}
  5. - name: Set PYTHONPATH env var for PostgreSQL
  6. lineinfile:
  7. path: /etc/postgresql/{{ postgresql_version }}/main/environment
  8. regexp: "^PYTHONPATH="
  9. line: "PYTHONPATH='{{ venv_dir }}/lib/python{{ python_version }}/site-packages:{{ app_dir }}'"
  10. notify:
  11. - Restart postgresql