postgresql/tasks/configure.yml

16 lines
482 B
YAML

---
- name: Configure global settings.
lineinfile:
dest: "{{ postgresql_config_path }}/postgresql.conf"
regexp: "^#?{{ item.option }}.+$"
line: "{{ item.option }} = '{{ item.value }}'"
state: "{{ item.state | default('present') }}"
with_items: "{{ postgresql_global_config_options }}"
notify: restart postgresql
- name: Ensure PostgreSQL unix socket dirs exist.
file:
path: "{{ postgresql_unix_socket_directories }}"
state: directory
mode: 0777