pgbouncer: fix pid file

This commit is contained in:
ace 2023-02-21 01:16:21 +03:00
parent c3b5ab3f91
commit f8c618b893
Signed by: ace
GPG Key ID: 2C08973DD37A76FD
2 changed files with 1 additions and 14 deletions

View File

@ -1,7 +1,7 @@
pgbouncer_conf_dir: "/etc/pgbouncer"
pgbouncer_conf_name: "pgbouncer.ini"
pgbouncer_log_dir: "/var/log/pgbouncer"
pgbouncer_pid_dir: "/var/run/pgbouncer"
pgbouncer_pid_dir: "/var/run"
pgbouncer_pid_name: "pgbouncer.pid"
pgbouncer_log_name: "pgbouncer.log"
pgbouncer_listen_port: 6432

View File

@ -118,7 +118,6 @@
loop:
- "{{ pgbouncer_conf_dir }}"
- "{{ pgbouncer_log_dir }}"
- "{{ pgbouncer_pid_dir }}"
- name: Ping PostgreSQL server
community.postgresql.postgresql_ping:
@ -160,15 +159,3 @@
masked: no
register: pgbouncer_enable_and_start
tags: pgbouncer, pgbouncer_start
- name: Ensure user and group applied to all files and dirs one more time
file:
path: "{{ item }}"
owner: "{{ pgbouncer_systemd_user }}"
group: "{{ pgbouncer_systemd_group }}"
recurse: yes
state: directory
loop:
- "{{ pgbouncer_conf_dir }}"
- "{{ pgbouncer_log_dir }}"
- "{{ pgbouncer_pid_dir }}"