PgBouncer: add handler (restart)

This commit is contained in:
Alexis Ben Miloud--Josselin 2023-03-30 13:19:13 +02:00
parent 34a0dae3e6
commit d37f6c0e3f
3 changed files with 9 additions and 0 deletions

View file

@ -17,6 +17,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
* apt: with Debian 12, backports are installed but disabled by default
* openvpn: updated the README file
* pgbouncer: add handler to restart the service
### Fixed

View file

@ -0,0 +1,5 @@
---
- name: Restart PgBouncer
ansible.builtin.systemd:
name: pgbouncer.service
state: restarted

View file

@ -7,11 +7,14 @@
ansible.builtin.lineinfile:
path: /etc/default/pgbouncer
line: ulimit -n 65536
notify: Restart PgBouncer
- name: Add config file for PgBouncer
ansible.builtin.template:
src: pgbouncer.ini.j2
dest: /etc/pgbouncer/pgbouncer.ini
notify: Restart PgBouncer
- name: Populate userlist.txt
ansible.builtin.template:
src: userlist.txt.j2
dest: /etc/pgbouncer/userlist.txt
notify: Restart PgBouncer