From a67a4ab168d4f9a07a87fb466f2d50d0f13e6c5b Mon Sep 17 00:00:00 2001 From: Mike DePaulo Date: Mon, 11 Jul 2022 15:20:01 -0400 Subject: [PATCH] Fix failure on "geerlingguy.postgresql : Define postgresql_log_dir." fixes: #1242 (cherry picked from commit 6b2456426d0f2509561c73dcf71d861adbc2ead9) --- CHANGES/1242.bugfix | 1 + roles/pulp_database/vars/main.yml | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 CHANGES/1242.bugfix diff --git a/CHANGES/1242.bugfix b/CHANGES/1242.bugfix new file mode 100644 index 000000000..8a8ac666d --- /dev/null +++ b/CHANGES/1242.bugfix @@ -0,0 +1 @@ +Fix geerlingguy.postgresql role >=3.3.1 failing on the task "Define postgresql_log_dir." diff --git a/roles/pulp_database/vars/main.yml b/roles/pulp_database/vars/main.yml index b0c8303b1..170567415 100644 --- a/roles/pulp_database/vars/main.yml +++ b/roles/pulp_database/vars/main.yml @@ -24,10 +24,14 @@ __pulp_database_merged_pulp_settings: "{{ __pulp_database_pulp_settings_defaults __pulp_database_local_postgresql_global_config_options: - option: unix_socket_directories value: '{{ postgresql_unix_socket_directories | join(",") }}' + - option: log_directory + value: 'log' __pulp_database_remote_postgresql_global_config_options: - option: listen_addresses value: "*" + - option: log_directory + value: 'log' postgresql_global_config_options: "{{ (__pulp_database_merged_pulp_settings.databases.default.HOST == 'localhost') | ternary(__pulp_database_local_postgresql_global_config_options, __pulp_database_remote_postgresql_global_config_options) }}"