Skip to content

Assume default 'log' for postgres_log_dir #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dwrobel
Copy link

@dwrobel dwrobel commented Mar 6, 2025

Fixes the following error:

TASK [geerlingguy.postgresql : Define postgresql_log_dir.]
fatal: [localhost]: FAILED! => {"msg": "The task includes an
option with an undefined variable. The error was: 'dict object'
has no attribute 'log_directory'. 'dict object' has no attribute

when reporting and logging will be redirected to journald by using the following configuration:

postgresql_global_config_options:

  • option: log_destination value: 'stderr'
  • option: logging_collector value: 'off'
  • option: log_line_prefix value: ''

Note: the log_directory is not used when 'logging_collector'
is 'off'.

Fixes the following error:

  TASK [geerlingguy.postgresql : Define postgresql_log_dir.]
  fatal: [localhost]: FAILED! => {"msg": "The task includes an
  option with an undefined variable. The error was: 'dict object'
  has no attribute 'log_directory'. 'dict object' has no attribute

when reporting and logging will be redirected to journald
by using the following configuration:

postgresql_global_config_options:
  - option: log_destination
    value: 'stderr'
  - option: logging_collector
    value: 'off'
  - option: log_line_prefix
    value: ''

Note: the log_directory is not used when 'logging_collector'
      is 'off'.

Signed-off-by: Damian Wrobel <[email protected]>
Copy link

github-actions bot commented Jul 4, 2025

This pr has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@github-actions github-actions bot added the stale label Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant