Skip to content

Commit

Permalink
provide a clearer distinction of RHEL based packages
Browse files Browse the repository at this point in the history
we use dnf to distinguish it from apt based installation

give the initialization task a clearer name
  • Loading branch information
kayiwa committed Dec 31, 2024
1 parent 96e44bf commit 872428d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion roles/postgresql/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ postgres_packages:
- postgresql-client-{{ postgres_version }}
- postgresql-contrib-{{ postgres_version }}

rh_postgres_packages:
dnf_postgres_packages:
- postgresql-server

postgres_client_packages:
Expand Down
4 changes: 2 additions & 2 deletions roles/postgresql/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
name: '{{ item }}'
state: present
loop:
- "{{ rh_postgres_packages }}"
- "{{ dnf_postgres_packages }}"
when:
- postgresql_is_local
- ansible_os_family == "RedHat"
Expand All @@ -56,7 +56,7 @@
when:
- running_on_server

- name: PostgreSQL | Check if PostgreSQL data directory (RedHat)
- name: PostgreSQL | Check if PostgreSQL data initialization logs exist (RedHat)
ansible.builtin.stat:
path: "/var/lib/pgsql/initdb_postgresql.log"
register: pgsql_data_install
Expand Down

0 comments on commit 872428d

Please sign in to comment.