From f90f7e141efae9304b73ae73ed4501fdf431b634 Mon Sep 17 00:00:00 2001 From: Aditya Hase Date: Mon, 2 Jul 2018 16:24:53 +0530 Subject: [PATCH] Add single quotes around password variables in ansible script As mentioned in #657 admin and mysql root password with whitespaces aren't recognized properly by shell adding single quotes around them fixes this issue. --- playbooks/roles/bench/tasks/setup_erpnext.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/bench/tasks/setup_erpnext.yml b/playbooks/roles/bench/tasks/setup_erpnext.yml index 2e49219c..5dee30b3 100644 --- a/playbooks/roles/bench/tasks/setup_erpnext.yml +++ b/playbooks/roles/bench/tasks/setup_erpnext.yml @@ -15,7 +15,7 @@ register: site_folder - name: Create a new site - command: "bench new-site {{ site }} --admin-password {{ admin_password }} --mariadb-root-password {{ mysql_root_password }}" + command: "bench new-site {{ site }} --admin-password '{{ admin_password }}' --mariadb-root-password '{{ mysql_root_password }}'" args: chdir: "{{ bench_path }}" when: not site_folder.stat.exists