PgBouncer: add handler (restart)
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2763|5|2758|5|:-1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/231//ansiblelint">Evolix » ansible-roles » unstable #231</a>
Details
gitea/ansible-roles/pipeline/head This commit looks good
Details
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2763|5|2758|5|:-1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/231//ansiblelint">Evolix » ansible-roles » unstable #231</a>
Details
gitea/ansible-roles/pipeline/head This commit looks good
Details
This commit is contained in:
parent
34a0dae3e6
commit
d37f6c0e3f
|
@ -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
|
* apt: with Debian 12, backports are installed but disabled by default
|
||||||
* openvpn: updated the README file
|
* openvpn: updated the README file
|
||||||
|
* pgbouncer: add handler to restart the service
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
- name: Restart PgBouncer
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: pgbouncer.service
|
||||||
|
state: restarted
|
|
@ -7,11 +7,14 @@
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/default/pgbouncer
|
path: /etc/default/pgbouncer
|
||||||
line: ulimit -n 65536
|
line: ulimit -n 65536
|
||||||
|
notify: Restart PgBouncer
|
||||||
- name: Add config file for PgBouncer
|
- name: Add config file for PgBouncer
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: pgbouncer.ini.j2
|
src: pgbouncer.ini.j2
|
||||||
dest: /etc/pgbouncer/pgbouncer.ini
|
dest: /etc/pgbouncer/pgbouncer.ini
|
||||||
|
notify: Restart PgBouncer
|
||||||
- name: Populate userlist.txt
|
- name: Populate userlist.txt
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: userlist.txt.j2
|
src: userlist.txt.j2
|
||||||
dest: /etc/pgbouncer/userlist.txt
|
dest: /etc/pgbouncer/userlist.txt
|
||||||
|
notify: Restart PgBouncer
|
||||||
|
|
Loading…
Reference in New Issue