ansible-roles/pgbouncer/tasks/main.yml
Alexis Ben Miloud--Josselin eae2eed7b0
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |4831|10|4821|5|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/211//ansiblelint">Evolix » ansible-roles » unstable #211</a>
gitea/ansible-roles/pipeline/head This commit looks good
Add role for PgBouncer
2023-03-16 17:14:16 +01:00

18 lines
409 B
YAML

---
- name: PgBouncer is installed
apt:
name: pgbouncer
state: present
- name: Limit for PgBouncer is set
lineinfile:
path: /etc/default/pgbouncer
line: ulimit -n 65536
- name: Add config file for PgBouncer
template:
src: pgbouncer.ini.j2
dest: /etc/pgbouncer/pgbouncer.ini
- name: Populate userlist.txt
template:
src: userlist.txt.j2
dest: /etc/pgbouncer/userlist.txt