Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiKhomik committed Dec 6, 2024
1 parent 55ea374 commit 4ae3bbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ansible1/roles/postgresql/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@

- name: Configure PostgreSQL. Set hosts in pg_hba.conf
template:
src: pg_hba.conf.j2
src: "pg_hba.conf.j2"
dest: "/etc/postgresql/{{ postgres_version }}/main/pg_hba.conf"
backup: yes
owner: "{{ postgres_user }}"
group: "{{ postgres_group }}"
mode: 0600
notify: restart postgresql
become: yes

Expand Down
1 change: 1 addition & 0 deletions ansible1/roles/postgresql/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
postgres_user: "postgres"
postgres_group: postgres
postgres_db_development_name: "zero_waste_development"
postgres_db_test_name: "zero_waste_test"
postgres_version: 12
Expand Down

0 comments on commit 4ae3bbc

Please sign in to comment.