From fb7ca8af6315ade9be88bfed23de7626b6de3c7f Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 8 Sep 2020 23:32:56 +0200 Subject: [PATCH] fix issue for migration --- tasks/database_postgres.yml | 1 + tasks/main.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/database_postgres.yml b/tasks/database_postgres.yml index 328f903..e6b7cc3 100644 --- a/tasks/database_postgres.yml +++ b/tasks/database_postgres.yml @@ -13,6 +13,7 @@ name: "{{ nextcloud_db_name }}" lc_collate: fr_FR.UTF-8 encoding: utf8 + template: template0 owner: "{{ nextcloud_db_user }}" state: present register: nextcloud_database_creation diff --git a/tasks/main.yml b/tasks/main.yml index 926f52b..f70589c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -78,7 +78,7 @@ lineinfile: path: '{{ nextcloud_web_root }}/config/config.php' regexp: '^\s*''{{ item.option }}''' - line: ' ''{{ item.option }}'' => {{ item.value }},' + line: ' ''{{ item.option }}'' => ''{{ item.value }}'',' insertafter: '\$CONFIG' with_items: '{{ nextcloud_db_options }}' when: nextcloud_config_options is defined @@ -88,7 +88,7 @@ lineinfile: path: '{{ nextcloud_web_root }}/config/config.php' regexp: '^\s*''{{ item.option }}''' - line: ' ''{{ item.option }}'' => {{ item.value }},' + line: ' ''{{ item.option }}'' => ''{{ item.value }}'',' insertafter: '\$CONFIG' with_items: '{{ nextcloud_config_options }}' when: nextcloud_config_options is defined