summaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-10-29 03:38:05 +0100
committerGuilhem Moulin <guilhem@fripost.org>2024-11-06 11:56:57 +0100
commitb090fbe61cd8449595ccd0822ca87e33d666426d (patch)
tree1bf7695afdb74bc65c55b6796bb8a06654fa9104 /tasks
parent0fa3fd8aa6e512fe4a2ba52f090e70386812aaa7 (diff)
Tune PostgreSQL.
Cf. https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
Diffstat (limited to 'tasks')
-rw-r--r--tasks/webmap.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tasks/webmap.yml b/tasks/webmap.yml
index 5f82d7f..a417dbd 100644
--- a/tasks/webmap.yml
+++ b/tasks/webmap.yml
@@ -165,6 +165,13 @@
# PostgreSQL needs to be restarted to see the new locale
notify: Restart PostgreSQL
+- name: Configure PostgreSQL
+ copy: src=etc/postgresql/postgresql.conf
+ dest=/etc/postgresql/{{ postgresql.version }}/{{ postgresql.cluster }}/conf.d/local.conf
+ owner=postgres group=postgres
+ mode=0644
+ notify: Restart PostgreSQL
+
- name: Start PostgreSQL
service: name=postgresql@{{ postgresql.version }}-{{ postgresql.cluster }}.service state=started