Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
ensure log file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
raphapr committed Aug 17, 2020
1 parent ffba066 commit b768bad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@
file: path={{ pgbouncer_socket_path }} state=directory mode=2750 owner={{ pgbouncer_run_as_user }} group={{ pgbouncer_run_as_group }}
tags: pgbouncer

- name: Pgbouncer | Ensure log dir exists
file: path={{ pgbouncer_log_file|dirname }} state=directory mode=2750 owner={{ pgbouncer_run_as_user }} group={{ pgbouncer_run_as_group }}
tags: pgbouncer

- name: Pgbouncer | Ensure log file exists
file: path={{ pgbouncer_log_file }} state=touch mode=0755 owner={{ pgbouncer_run_as_user }} group={{ pgbouncer_run_as_group }}
tags: pgbouncer

- name: Pgbouncer | Get installed version
command: pgbouncer -V
ignore_errors: yes
Expand Down

0 comments on commit b768bad

Please sign in to comment.