install python-psycopg2 on buster (#42640)

This commit is contained in:
Emmanuel Cazenave 2020-10-07 15:55:15 +02:00 committed by Frédéric Péters
parent 92c12bdfa8
commit d34dd7b62c
2 changed files with 10 additions and 1 deletions

View File

@ -32,6 +32,15 @@
state: present
become: yes
- name: Install buster dependencies
apt:
name:
- python-psycopg2
state: present
become: yes
when: ansible_distribution_release == "buster"
- name: "create the postgresql user named {{user}}"
postgresql_user:
name: "{{user}}"

View File

@ -12,7 +12,7 @@ then
elif [ $1 = 'run-tests' ]
then
apt update
apt install -y wget ca-certificates gnupg2 git ansible postgresql sudo python python-psycopg2 python3
apt install -y wget ca-certificates gnupg2 git ansible postgresql sudo python python3
adduser --disabled-password --gecos "" testuser
usermod -a -G sudo testuser
echo 'testuser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers