ansible-roles/pgbouncer/tasks/main.yml
Alexis Ben Miloud--Josselin d37f6c0e3f
All checks were successful
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>
gitea/ansible-roles/pipeline/head This commit looks good
PgBouncer: add handler (restart)
2023-03-30 13:21:33 +02:00

21 lines
557 B
YAML

---
- name: PgBouncer is installed
ansible.builtin.apt:
name: pgbouncer
state: present
- name: Limit for PgBouncer is set
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