mirror of
https://gitea.0xace.cc/ansible-galaxy/pgbouncer.git
synced 2024-11-24 20:56:40 +00:00
pgbouncer: fix pid file
This commit is contained in:
parent
c3b5ab3f91
commit
f8c618b893
@ -1,7 +1,7 @@
|
|||||||
pgbouncer_conf_dir: "/etc/pgbouncer"
|
pgbouncer_conf_dir: "/etc/pgbouncer"
|
||||||
pgbouncer_conf_name: "pgbouncer.ini"
|
pgbouncer_conf_name: "pgbouncer.ini"
|
||||||
pgbouncer_log_dir: "/var/log/pgbouncer"
|
pgbouncer_log_dir: "/var/log/pgbouncer"
|
||||||
pgbouncer_pid_dir: "/var/run/pgbouncer"
|
pgbouncer_pid_dir: "/var/run"
|
||||||
pgbouncer_pid_name: "pgbouncer.pid"
|
pgbouncer_pid_name: "pgbouncer.pid"
|
||||||
pgbouncer_log_name: "pgbouncer.log"
|
pgbouncer_log_name: "pgbouncer.log"
|
||||||
pgbouncer_listen_port: 6432
|
pgbouncer_listen_port: 6432
|
||||||
|
@ -118,7 +118,6 @@
|
|||||||
loop:
|
loop:
|
||||||
- "{{ pgbouncer_conf_dir }}"
|
- "{{ pgbouncer_conf_dir }}"
|
||||||
- "{{ pgbouncer_log_dir }}"
|
- "{{ pgbouncer_log_dir }}"
|
||||||
- "{{ pgbouncer_pid_dir }}"
|
|
||||||
|
|
||||||
- name: Ping PostgreSQL server
|
- name: Ping PostgreSQL server
|
||||||
community.postgresql.postgresql_ping:
|
community.postgresql.postgresql_ping:
|
||||||
@ -160,15 +159,3 @@
|
|||||||
masked: no
|
masked: no
|
||||||
register: pgbouncer_enable_and_start
|
register: pgbouncer_enable_and_start
|
||||||
tags: pgbouncer, pgbouncer_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 }}"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user