New task to manage additional custom parameters.
This commit is contained in:
parent
aded1a0426
commit
4f2e0615e5
|
@ -71,6 +71,9 @@ psql_conf_parameters:
|
|||
- { name: 'max_stack_depth', value: '2MB', set: 'false' }
|
||||
- { name: 'max_files_per_process', value: '8192', set: 'false' }
|
||||
|
||||
# Custom parameters. Default empty
|
||||
psql_conf_custom_parameters: []
|
||||
|
||||
# logging configuration. Important: the parameters that need a restart must be listed in psql_conf_parameters
|
||||
psql_log_configuration:
|
||||
- { name: 'log_destination', value: 'stderr', set: 'true' }
|
||||
|
|
|
@ -98,6 +98,15 @@
|
|||
value: "{% if psql_listen_on_ext_int %}*{% else %}default{% endif %}"
|
||||
notify: Restart postgresql
|
||||
|
||||
- name postgresql-config-deb | Custom configuration parameters
|
||||
become: true
|
||||
become_user: postgres
|
||||
community.postgresql.postgresql_set:
|
||||
name: '{{ item.name }}'
|
||||
value: "{% if item.set %}{{ item.value }}{% else %}default{% endif %}"
|
||||
loop: '{{ psql_conf_custom_parameters }}'
|
||||
notify: Restart postgresql
|
||||
|
||||
- name: postgresql-config-deb | Flush flush_handlers Restart PostgreSQL
|
||||
ansible.builtin.meta: flush_handlers
|
||||
tags: ['postgresql', 'postgres', 'pg_hba', 'pg_conf']
|
||||
|
|
Loading…
Reference in New Issue