first commit

This commit is contained in:
ace
2023-02-08 02:34:53 +03:00
commit c3b5ab3f91
10 changed files with 323 additions and 0 deletions

22
handlers/main.yaml Normal file
View File

@ -0,0 +1,22 @@
---
- name: Restart pgbouncer service
systemd:
daemon_reload: true
name: pgbouncer
enabled: true
state: restarted
listen: "restart pgbouncer"
when: not pgbouncer_enable_and_start.changed
- name: Wait for port "{{ pgbouncer_listen_port }}" to become open on the host
wait_for:
port: "{{ pgbouncer_listen_port }}"
host: "{{ hostvars[inventory_hostname]['inventory_hostname'] }}"
state: started
timeout: 120
delay: 5
ignore_errors: false
listen: "restart pgbouncer"
...