ansible-roles/postgresql/tasks/packages_buster.yml
Jérémy Lecour ee21973371
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2777|524|2253|2462|:+1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Use FQCN
Fully Qualified Collection Name
2023-03-20 23:33:19 +01:00

18 lines
420 B
YAML

---
- name: "Set variables (Debian 10)"
ansible.builtin.set_fact:
postgresql_version: '11'
when: postgresql_version is none or postgresql_version | length == 0
- ansible.builtin.include: pgdg-repo.yml
when: postgresql_version != '11'
- name: Install postgresql package
ansible.builtin.apt:
name:
- "postgresql-{{ postgresql_version }}"
- pgtop
- libdbd-pg-perl
update_cache: yes