Skip to content

Commit 3cce492

Browse files
committed
[IMP] Remove the 'odoo_postgresql_active_unaccent' option and add the new 'odoo_postgresql_extensions' option to configure multiple PostgreSQL extensions on the 'template1' database
1 parent c2dd5b6 commit 3cce492

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

defaults/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ odoo_reportlab_font_url: http://www.reportlab.com/ftp/pfbfer.zip
3535
# Tasks related to PostgreSQL
3636
odoo_postgresql_set_user: True
3737
odoo_postgresql_user_role_attr: CREATEDB,NOSUPERUSER
38-
odoo_postgresql_active_unaccent: True
38+
odoo_postgresql_extensions:
39+
- unaccent
3940

4041
# Standard installation/configuration options (odoo_install_type == 'standard')
4142
odoo_config_file: "/home/{{ odoo_user }}/{{ odoo_service }}.conf"

tasks/postgresql.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
when: odoo_config_db_passwd is defined and odoo_config_db_passwd
1919
and odoo_postgresql_set_user
2020

21-
- name: PostgreSQL - Activate the 'unaccent' extension on databases
22-
postgresql_ext: name=unaccent db=template1
23-
when: odoo_postgresql_active_unaccent
21+
- name: PostgreSQL - Activate some extensions on the 'template1' database
22+
postgresql_ext:
23+
name: "{{ item }}"
24+
db: template1
25+
with_items: "{{ odoo_postgresql_extensions }}"
2426

2527
delegate_to: "{{ odoo_postgresql_delegate_to }}"
2628
remote_user: "{{ odoo_postgresql_remote_user }}"

0 commit comments

Comments
 (0)