0001-install-python-psycopg2-on-buster-42640.patch
roles/base/tasks/main.yml | ||
---|---|---|
32 | 32 |
state: present |
33 | 33 |
become: yes |
34 | 34 | |
35 |
- name: Install buster dependencies |
|
36 |
apt: |
|
37 |
name: |
|
38 |
- python-psycopg2 |
|
39 |
state: present |
|
40 |
become: yes |
|
41 |
when: ansible_distribution_release == "buster" |
|
42 | ||
43 | ||
35 | 44 |
- name: "create the postgresql user named {{user}}" |
36 | 45 |
postgresql_user: |
37 | 46 |
name: "{{user}}" |
test-nspawn | ||
---|---|---|
12 | 12 |
elif [ $1 = 'run-tests' ] |
13 | 13 |
then |
14 | 14 |
apt update |
15 |
apt install -y wget ca-certificates gnupg2 git ansible postgresql sudo python python-psycopg2 python3
|
|
15 |
apt install -y wget ca-certificates gnupg2 git ansible postgresql sudo python python3 |
|
16 | 16 |
adduser --disabled-password --gecos "" testuser |
17 | 17 |
usermod -a -G sudo testuser |
18 | 18 |
echo 'testuser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers |
19 |
- |