mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-21 20:30:21 -07:00
* Add ArchLinux, Debian Bullseye and CentOS Stream 8 to CI.
* Add Alpine to CI matrix as well.
(cherry picked from commit a06903f33a
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
f60c90873f
commit
c0008e976f
56 changed files with 861 additions and 700 deletions
|
@ -99,6 +99,14 @@
|
|||
command: /sbin/service postgresql initdb
|
||||
when: ansible_os_family == "RedHat" and ansible_service_mgr != "systemd"
|
||||
|
||||
- name: Initialize postgres (Archlinux)
|
||||
command: su - postgres -c "initdb --locale en_US.UTF-8 -D '/var/lib/postgres/data'"
|
||||
when: ansible_os_family == "Archlinux"
|
||||
|
||||
- name: Initialize postgres (Alpine)
|
||||
command: su - postgres -c "initdb --locale en_US.UTF-8 -D '/var/lib/postgresql/data'"
|
||||
when: ansible_os_family == "Alpine"
|
||||
|
||||
- name: Initialize postgres (Debian)
|
||||
shell: . /usr/share/postgresql-common/maintscripts-functions && set_system_locale && /usr/bin/pg_createcluster -u postgres {{ pg_ver }} main
|
||||
args:
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
postgresql_packages:
|
||||
- "postgresql"
|
||||
- "py3-psycopg2"
|
||||
|
||||
pg_hba_location: "/var/lib/postgresql/data/pg_hba.conf"
|
||||
pg_dir: "/var/lib/postgresql/data"
|
|
@ -0,0 +1,6 @@
|
|||
postgresql_packages:
|
||||
- "postgresql"
|
||||
- "python-psycopg2"
|
||||
|
||||
pg_hba_location: "/var/lib/postgres/data/pg_hba.conf"
|
||||
pg_dir: "/var/lib/postgres/data"
|
|
@ -0,0 +1,8 @@
|
|||
postgresql_packages:
|
||||
- "postgresql"
|
||||
- "postgresql-common"
|
||||
- "python3-psycopg2"
|
||||
|
||||
pg_hba_location: "/etc/postgresql/13/main/pg_hba.conf"
|
||||
pg_dir: "/var/lib/postgresql/13/main"
|
||||
pg_ver: 13
|
Loading…
Add table
Add a link
Reference in a new issue