Tags for the client installation.

This commit is contained in:
Andrea Dell'Amico 2023-12-18 13:07:42 +01:00
parent 96d172ce67
commit efb66ae437
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 7 additions and 7 deletions

View File

@ -16,7 +16,7 @@
when:
- ansible_distribution_file_variety == "Debian"
- postgresql_client_only
tags: ['postgresql', 'postgres']
tags: ['postgresql', 'postgres', 'postgres_client']
block:
- name: postgresql-packages | Install the postgresql server packages on Deb systems
ansible.builtin.apt:
@ -41,7 +41,7 @@
args:
creates: '{{ psql_el_data_dir }}/postgresql.conf'
- name: postgresql-packages | EL server packagesx from SCL
- name: postgresql-packages | EL server packages from SCL
when:
- psql_el_install_scl_version
- ansible_distribution_file_variety == "RedHat"
@ -63,19 +63,19 @@
- not psql_el_install_scl_version
- postgresql_client_only
- ansible_distribution_file_variety == "RedHat"
tags: ['postgresql', 'postgres']
tags: ['postgresql', 'postgres', 'postgres_client']
block:
- name: postgresql-packages | Install the postgresql client from the pgdg repository
ansible.builtin.yum:
pkg: "postgresql{{ psql_version }}"
state: present
- name: postgresql-packages | EL server packagesx from SCL
- name: postgresql-packages | EL client packages from SCL
when:
- psql_el_install_scl_version
- ansible_distribution_file_variety == "RedHat"
- postgresql_client_only
tags: ['scl', 'postgresql', 'postgres']
tags: ['scl', 'postgresql', 'postgres', 'postgres_client']
block:
- name: postgresql-packages | Install the postgresql scl client package
ansible.builtin.yum:

View File

@ -3,7 +3,7 @@
when:
- pg_use_postgresql_org_repo
- ansible_distribution_file_variety == "Debian"
tags: ['postgresql', 'postgresql_repo']
tags: ['postgresql', 'postgresql_repo', 'postgres_client']
block:
- name: postgresql_org_repo | Ensure that /etc/apt.d/keyrings exists
ansible.builtin.file:
@ -35,7 +35,7 @@
when:
- pg_use_postgresql_org_repo
- ansible_distribution_file_variety == "RedHat"
tags: ['postgresql', 'postgresql_repo']
tags: ['postgresql', 'postgresql_repo', 'postgres_client']
block:
- name: postgresql_org_repo | Install the pgsql pgdg repository
ansible.builtin.yum: