ansible-roles/pgbouncer/tasks/main.yml

18 lines
409 B
YAML
Raw Normal View History

2023-03-16 17:14:16 +01:00
---
- 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