Skip to content

Commit

Permalink
[IMP] Remove the 'odoo_postgresql_active_unaccent' option and add the…
Browse files Browse the repository at this point in the history
… new 'odoo_postgresql_extensions' option to configure multiple PostgreSQL extensions on the 'template1' database
  • Loading branch information
sebalix committed Nov 9, 2017
1 parent c2dd5b6 commit 3cce492
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ odoo_reportlab_font_url: http://www.reportlab.com/ftp/pfbfer.zip
# Tasks related to PostgreSQL
odoo_postgresql_set_user: True
odoo_postgresql_user_role_attr: CREATEDB,NOSUPERUSER
odoo_postgresql_active_unaccent: True
odoo_postgresql_extensions:
- unaccent

# Standard installation/configuration options (odoo_install_type == 'standard')
odoo_config_file: "/home/{{ odoo_user }}/{{ odoo_service }}.conf"
Expand Down
8 changes: 5 additions & 3 deletions tasks/postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
when: odoo_config_db_passwd is defined and odoo_config_db_passwd
and odoo_postgresql_set_user

- name: PostgreSQL - Activate the 'unaccent' extension on databases
postgresql_ext: name=unaccent db=template1
when: odoo_postgresql_active_unaccent
- name: PostgreSQL - Activate some extensions on the 'template1' database
postgresql_ext:
name: "{{ item }}"
db: template1
with_items: "{{ odoo_postgresql_extensions }}"

delegate_to: "{{ odoo_postgresql_delegate_to }}"
remote_user: "{{ odoo_postgresql_remote_user }}"
Expand Down

0 comments on commit 3cce492

Please sign in to comment.