7c632352a0
The behaviour of the `include` module is badly defined (it try to choose between statically importing the tasks and dynamically including them) and can cause problems depending on any number of constraints (mostly if it choose the wrong behaviour). Replace it with the `import_tasks` (always statically import tasks) unless the `include` is in a loop in which case we replace it with `include_tasks` (always dynamically include tasks).
17 lines
357 B
YAML
17 lines
357 B
YAML
---
|
|
|
|
- name: "Set variables (Debian 12)"
|
|
set_fact:
|
|
postgresql_version: '15'
|
|
when: postgresql_version is none or postgresql_version | length == 0
|
|
|
|
- import_tasks: pgdg-repo.yml
|
|
when: postgresql_version != '15'
|
|
|
|
- name: Install postgresql package
|
|
apt:
|
|
name:
|
|
- "postgresql-{{ postgresql_version }}"
|
|
- pgtop
|
|
- libdbd-pg-perl
|