|
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 |
| - |
23 | 15 | - name: pgsodium - determine postgres bin directory
|
24 | 16 | shell: pg_config --bindir
|
25 | 17 | register: pg_bindir_output
|
|
36 | 28 | line: pgsodium.getkey_script= '{{ pg_bindir }}/pgsodium_getkey.sh'
|
37 | 29 | when: debpkg_mode or nixpkg_mode and stage2_nix
|
38 | 30 |
|
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 |
| - |
47 | 31 | # supautils
|
48 | 32 | - name: supautils - add supautils to session_preload_libraries
|
49 | 33 | become: yes
|
|
87 | 71 | replace: "include = '/etc/postgresql-custom/supautils.conf'"
|
88 | 72 | when: debpkg_mode or nixpkg_mode and stage2_nix
|
89 | 73 |
|
| 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