File tree Expand file tree Collapse file tree 2 files changed +21
-17
lines changed Expand file tree Collapse file tree 2 files changed +21
-17
lines changed Original file line number Diff line number Diff line change 461
461
# Database variables
462
462
mailman3_database_type : postgres
463
463
mailman3_database_pg_packages :
464
- - postgresql-15
464
+ - postgresql-16
465
465
# - postgresql-contrib
466
466
- libpq-dev
467
467
- python3-pip
468
+ - python3-psycopg2
468
469
mailman3_database_super_password : superpassword
469
- mailman3_postgresql_config_dir : " /etc/postgresql/15 "
470
+ mailman3_postgresql_config_dir : " /etc/postgresql/16 "
470
471
mailman3_database_list :
471
472
- name : mailman3_web
472
473
username : mailman3_web
Original file line number Diff line number Diff line change 1
1
---
2
- - name : Postgres apt-key
3
- ansible.builtin.apt_key :
4
- url : https://www.postgresql.org/media/keys/ACCC4CF8.asc
5
- state : present
6
-
7
- - name : Postgres repo
8
- ansible.builtin.apt_repository :
9
- repo : ' deb http://apt.postgresql.org/pub/repos/apt/ {{ ansible_distribution_release }}-pgdg main'
10
- state : present
11
- filename : ' pgdg'
2
+ # Using postgresql's packages is a choice.
3
+ # - name: Postgres apt-key
4
+ # ansible.builtin.apt_key:
5
+ # url: https://www.postgresql.org/media/keys/ACCC4CF8.asc
6
+ # state: present
7
+ #
8
+ # - name: Postgres repo
9
+ # ansible.builtin.apt_repository:
10
+ # repo: 'deb http://apt.postgresql.org/pub/repos/apt/ {{ ansible_distribution_release }}-pgdg main'
11
+ # state: present
12
+ # filename: 'pgdg'
12
13
13
14
- name : Apt update
14
15
ansible.builtin.apt :
20
21
name : " {{ item }}"
21
22
with_items : " {{ mailman3_database_pg_packages }}"
22
23
23
- - name : Install pip modules
24
- ansible.builtin.pip :
25
- name : " {{ item }}"
26
- with_items :
27
- - psycopg2
24
+ # Starting with ubuntu 24.04 you can't install regular pip modules
25
+ # and must use a venv. Switch this to python3- apt packages.
26
+ # - name: Install pip modules
27
+ # ansible.builtin.pip:
28
+ # name: "{{ item }}"
29
+ # with_items:
30
+ # - psycopg2
28
31
29
32
- name : Ensure postgresql is running and starts on boot
30
33
ansible.builtin.service :
You can’t perform that action at this time.
0 commit comments