|
12 | 12 | apt-get install -y --no-install-recommends /tmp/extensions/*.deb
|
13 | 13 | when: debpkg_mode
|
14 | 14 |
|
| 15 | +- name: pg_cron - set cron.database_name |
| 16 | + become: yes |
| 17 | + lineinfile: |
| 18 | + path: /etc/postgresql/postgresql.conf |
| 19 | + state: present |
| 20 | + line: cron.database_name = 'postgres' |
| 21 | + when: debpkg_mode or nixpkg_mode and stage2_nix |
| 22 | + |
15 | 23 | - name: pgsodium - determine postgres bin directory
|
16 | 24 | shell: pg_config --bindir
|
17 | 25 | register: pg_bindir_output
|
|
28 | 36 | line: pgsodium.getkey_script= '{{ pg_bindir }}/pgsodium_getkey.sh'
|
29 | 37 | when: debpkg_mode or nixpkg_mode and stage2_nix
|
30 | 38 |
|
| 39 | +- name: auto_explain - set auto_explain.log_min_duration |
| 40 | + become: yes |
| 41 | + lineinfile: |
| 42 | + path: /etc/postgresql/postgresql.conf |
| 43 | + state: present |
| 44 | + line: auto_explain.log_min_duration = 10s |
| 45 | + when: debpkg_mode or nixpkg_mode and stage2_nix |
| 46 | + |
31 | 47 | # supautils
|
32 | 48 | - name: supautils - add supautils to session_preload_libraries
|
33 | 49 | become: yes
|
|
71 | 87 | replace: "include = '/etc/postgresql-custom/supautils.conf'"
|
72 | 88 | when: debpkg_mode or nixpkg_mode and stage2_nix
|
73 | 89 |
|
74 |
| -- name: pg_cron - set cron.database_name |
75 |
| - become: yes |
76 |
| - lineinfile: |
77 |
| - path: /etc/postgresql/postgresql.conf |
78 |
| - state: present |
79 |
| - line: cron.database_name = 'postgres' |
80 |
| - when: debpkg_mode or nixpkg_mode and stage2_nix |
81 |
| - |
82 |
| -- name: auto_explain - set auto_explain.log_min_duration |
83 |
| - become: yes |
84 |
| - lineinfile: |
85 |
| - path: /etc/postgresql/postgresql.conf |
86 |
| - state: present |
87 |
| - line: auto_explain.log_min_duration = 10s |
88 |
| - when: debpkg_mode or nixpkg_mode and stage2_nix |
89 |
| - |
90 | 90 | - name: Cleanup - extension packages
|
91 | 91 | file:
|
92 | 92 | path: /tmp/extensions
|
|
0 commit comments