Skip to content

Commit

Permalink
add a handler to reload postgres
Browse files Browse the repository at this point in the history
This also renames the handler that restarts it.

You're welcome Johannes.
  • Loading branch information
shtlrs authored and jchristgit committed May 14, 2024
1 parent 4a98414 commit 2ebe7aa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ansible/roles/postgres/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
- name: Restart postgres.
- name: Restart the postgres service
service:
name: '{{ postgres_daemon }}'
state: "restarted"
tags:
- role::postgres

- name: Reload the postgres service
service:
name: '{{ postgres_daemon }}'
state: reloaded
tags:
- role::postgres

0 comments on commit 2ebe7aa

Please sign in to comment.