From 68b5e1b9ae5621b28f687008b5d0f2c62e286fc7 Mon Sep 17 00:00:00 2001 From: Ameya Shenoy Date: Thu, 1 Mar 2018 07:49:41 +0530 Subject: [PATCH] develop installs python3 bench --- playbooks/roles/bench/tasks/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/bench/tasks/main.yml b/playbooks/roles/bench/tasks/main.yml index c7abb441..1ed5dafb 100644 --- a/playbooks/roles/bench/tasks/main.yml +++ b/playbooks/roles/bench/tasks/main.yml @@ -28,11 +28,17 @@ stat: path="{{ bench_path }}" register: bench_stat - - name: init bench + - name: python3 bench init for develop + command: bench init {{ bench_path }} --frappe-branch {{ branch }} --python python3 + args: + creates: "{{ bench_path }}" + when: not bench_stat.stat.exists and develop + + - name: python2 bench init for develop command: bench init {{ bench_path }} --frappe-branch {{ branch }} args: creates: "{{ bench_path }}" - when: not bench_stat.stat.exists + when: not bench_stat.stat.exists and production # setup common_site_config - name: setup config