forked from evolix/ansible-roles
Add support debian 13 for postgresql rôle and PG13
This commit is contained in:
parent
6190c66445
commit
cb257ef927
|
@ -10,6 +10,9 @@
|
||||||
- include: packages_buster.yml
|
- include: packages_buster.yml
|
||||||
when: ansible_distribution_major_version is version('10', '>=')
|
when: ansible_distribution_major_version is version('10', '>=')
|
||||||
|
|
||||||
|
- include: packages_bullseye.yml
|
||||||
|
when: ansible_distribution_major_version is version('11', '>=')
|
||||||
|
|
||||||
- include: config.yml
|
- include: config.yml
|
||||||
|
|
||||||
- include: nrpe.yml
|
- include: nrpe.yml
|
||||||
|
|
16
postgresql/tasks/packages_bullseye.yml
Normal file
16
postgresql/tasks/packages_bullseye.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: "Set variables (Debian 11)"
|
||||||
|
set_fact:
|
||||||
|
postgresql_version: '13'
|
||||||
|
when: postgresql_version is none or postgresql_version | length == 0
|
||||||
|
|
||||||
|
- include: pgdg-repo.yml
|
||||||
|
when: postgresql_version != '13'
|
||||||
|
|
||||||
|
- name: Install postgresql package
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- postgresql
|
||||||
|
- pgtop
|
||||||
|
- libdbd-pg-perl
|
Loading…
Reference in a new issue