focal needs python3-psycopg2 instead

This commit is contained in:
staticsafe 2020-08-22 20:00:14 -04:00
parent ce7769ae82
commit a85d00738a
1 changed files with 9 additions and 0 deletions

View File

@ -4,11 +4,20 @@
- name: Install PostgreSQL server and related packages
apt: name={{ packages }} state=latest update_cache=yes
when: ansible_distribution_release == 'bionic'
vars:
packages:
- postgresql
- postgresql-contrib
- python-psycopg2
- name: Install PostgreSQL server and related packages
apt: name={{ packages }} state=latest update_cache=yes
when: ansible_distribution_release == 'focal'
vars:
packages:
- postgresql
- postgresql-contrib
- python3-psycopg2
- name: Add Mastodon PostgreSQL database user
postgresql_user:
name: mastodon