aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/postgres/handlers
diff options
context:
space:
mode:
authorGravatar shtlrs <[email protected]>2024-05-14 19:30:54 +0200
committerGravatar jchristgit <[email protected]>2024-05-14 19:40:59 +0200
commit2ebe7aaf70b24cf0203cb9ec3a1ada7992a983a1 (patch)
tree82cb789237044f265e557c34dea4e6ad5096a86b /ansible/roles/postgres/handlers
parentignore .ansible file upon syncing (diff)
add a handler to reload postgres
This also renames the handler that restarts it. You're welcome Johannes.
Diffstat (limited to 'ansible/roles/postgres/handlers')
-rw-r--r--ansible/roles/postgres/handlers/main.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/ansible/roles/postgres/handlers/main.yml b/ansible/roles/postgres/handlers/main.yml
index 73fffe3..5f01c13 100644
--- a/ansible/roles/postgres/handlers/main.yml
+++ b/ansible/roles/postgres/handlers/main.yml
@@ -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