diff --git a/tasks/db.yml b/tasks/db.yml index 1879807aec7953a7c8c8c3330daa282eb46a8feb..efb1cd3e497f5e7c35d8ec9f2d095a9d9c49debf 100644 --- a/tasks/db.yml +++ b/tasks/db.yml @@ -36,8 +36,11 @@ command: psql -c "GRANT ALL PRIVILEGES ON DATABASE {{ funkwhale_database_name }} TO {{ funkwhale_database_user }}" -- name: "Create unaccent extension" +- name: "Create db extensions" when: funkwhale_database_managed become: true become_user: postgres - command: psql {{ funkwhale_database_name }} -c "CREATE EXTENSION IF NOT EXISTS unaccent" + command: psql {{ funkwhale_database_name }} -c "CREATE EXTENSION IF NOT EXISTS {{ item }}" + with_items: + - unaccent + - citext