From 28005660f12399681cd9241ecb25cbd0e92bc732 Mon Sep 17 00:00:00 2001 From: sebalix Date: Fri, 2 Mar 2018 11:28:04 +0100 Subject: [PATCH 1/2] [FIX] Wait for the project to be cloned before creating the Odoo data directory --- tasks/install.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/install.yml b/tasks/install.yml index e5554f3..f3ffbda 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -22,10 +22,6 @@ tags: - odoo_log -- name: Create odoo data dir directory - file: path={{ odoo_config_data_dir }} state=directory - owner={{ odoo_user }} group={{ odoo_user }} force=yes - - name: Project repository already cloned? stat: path={{ odoo_repo_dest }} register: project_path @@ -58,6 +54,10 @@ tags: - odoo_project +- name: Create odoo data dir directory + file: path={{ odoo_config_data_dir }} state=directory + owner={{ odoo_user }} group={{ odoo_user }} force=yes + - name: Standard installation import_tasks: install_standard.yml when: odoo_install_type == 'standard' From 48b4b80c1597e17391374b04bdcbd2e2d0066439 Mon Sep 17 00:00:00 2001 From: sebalix Date: Tue, 6 Mar 2018 09:49:49 +0100 Subject: [PATCH 2/2] [FIX] Odoo data directory should be created only with standard and pip install types (buildout one does not rely on the 'odoo_config_data_dir' option) + Tags added --- tasks/install.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/install.yml b/tasks/install.yml index f3ffbda..9776fa3 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -57,6 +57,10 @@ - name: Create odoo data dir directory file: path={{ odoo_config_data_dir }} state=directory owner={{ odoo_user }} group={{ odoo_user }} force=yes + when: odoo_install_type != 'buildout' + tags: + - odoo_install_type_pip + - odoo_install_type_standard - name: Standard installation import_tasks: install_standard.yml