diff --git a/tasks/postgresql-packages.yml b/tasks/postgresql-packages.yml index 81ae8d5..389e941 100644 --- a/tasks/postgresql-packages.yml +++ b/tasks/postgresql-packages.yml @@ -31,12 +31,12 @@ - ansible_distribution_file_variety == "RedHat" tags: ['postgresql', 'postgres'] block: - - name: postgresql-packages | Install the postgresql packages from the pgdg repository + - name: postgresql-packages | Install the postgresql EL packages from the pgdg repository ansible.builtin.yum: pkg: "{{ psql_el_pgdg_packages }}" state: present - - name: postgresql-packages | Init the db if needed + - name: postgresql-packages | Init the db if needed on EL systems ansible.builtin.command: /usr/pgsql-{{ psql_version }}/bin/postgresql-{{ psql_version }}-setup initdb args: creates: '{{ psql_el_data_dir }}/postgresql.conf' @@ -48,12 +48,12 @@ - not postgresql_client_only tags: ['scl', 'postgresql', 'postgres'] block: - - name: postgresql-packages | Install the postgresql scl packages + - name: postgresql-packages | Install the postgresql scl packages on EL ansible.builtin.yum: pkg: "{{ psql_el_scl_packages }}" state: present - - name: postgresql-packages | Init the db if needed + - name: postgresql-packages | Init the db if needed on EL systems ansible.builtin.command: /opt/rh/rh-postgresql{{ psql_version }}/root/usr/bin/postgresql-setup --initdb args: creates: '{{ psql_el_data_dir }}/postgresql.conf' @@ -65,7 +65,7 @@ - ansible_distribution_file_variety == "RedHat" tags: ['postgresql', 'postgres', 'postgres_client'] block: - - name: postgresql-packages | Install the postgresql client from the pgdg repository + - name: postgresql-packages | Install the postgresql client from the pgdg repository on EL systems ansible.builtin.yum: pkg: "postgresql{{ psql_version }}" state: present @@ -77,7 +77,7 @@ - postgresql_client_only tags: ['scl', 'postgresql', 'postgres', 'postgres_client'] block: - - name: postgresql-packages | Install the postgresql scl client package + - name: postgresql-packages | Install the postgresql scl client package on EL systems ansible.builtin.yum: pkg: "{{ item }}" state: present