diff options
| author | 2024-05-14 19:30:54 +0200 | |
|---|---|---|
| committer | 2024-05-14 19:40:59 +0200 | |
| commit | 2ebe7aaf70b24cf0203cb9ec3a1ada7992a983a1 (patch) | |
| tree | 82cb789237044f265e557c34dea4e6ad5096a86b | |
| parent | ignore .ansible file upon syncing (diff) | |
add a handler to reload postgres
This also renames the handler that restarts it.
You're welcome Johannes.
| -rw-r--r-- | ansible/roles/postgres/handlers/main.yml | 11 | 
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 | 
