mirror of
https://gitea.0xace.cc/ansible-galaxy/pgbouncer.git
synced 2024-11-25 05:06:39 +00:00
23 lines
518 B
YAML
23 lines
518 B
YAML
|
---
|
||
|
|
||
|
- 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"
|
||
|
|
||
|
...
|