focal needs python3-psycopg2 instead
This commit is contained in:
parent
ce7769ae82
commit
a85d00738a
|
@ -4,11 +4,20 @@
|
||||||
|
|
||||||
- name: Install PostgreSQL server and related packages
|
- name: Install PostgreSQL server and related packages
|
||||||
apt: name={{ packages }} state=latest update_cache=yes
|
apt: name={{ packages }} state=latest update_cache=yes
|
||||||
|
when: ansible_distribution_release == 'bionic'
|
||||||
vars:
|
vars:
|
||||||
packages:
|
packages:
|
||||||
- postgresql
|
- postgresql
|
||||||
- postgresql-contrib
|
- postgresql-contrib
|
||||||
- python-psycopg2
|
- 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
|
- name: Add Mastodon PostgreSQL database user
|
||||||
postgresql_user:
|
postgresql_user:
|
||||||
name: mastodon
|
name: mastodon
|
||||||
|
|
Loading…
Reference in New Issue