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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant