ansible-roles/pgbouncer/tasks/main.yml
Eric Morino 9f87049ee4
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2791|12|2779|11|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/262//ansiblelint">Evolix » ansible-roles » unstable #262</a>
gitea/ansible-roles/pipeline/head This commit looks good
add variables for admin_users and stats_users to access on the pgbouncer console
2023-05-31 17:09:42 +02:00

24 lines
562 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