install python-psycopg2 on buster (#42640)
This commit is contained in:
parent
92c12bdfa8
commit
d34dd7b62c
|
@ -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}}"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue