From c255c07ea5b35f07fefafe273daf33f7fabe9ede Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Mon, 6 Mar 2017 15:56:39 -0500 Subject: [PATCH] pass ansible the "raw" git repo url * I explored the |urlencode() filter instead. Ansible and git didn't like this. * Quoting doesn't seemed to be required. Ansible and the git module are smart enough to do the right thing. I tested with a space in the repo url path and it works. --- awx/playbooks/project_update.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/playbooks/project_update.yml b/awx/playbooks/project_update.yml index 8fdd3349c3..eb09cd3657 100644 --- a/awx/playbooks/project_update.yml +++ b/awx/playbooks/project_update.yml @@ -25,7 +25,7 @@ - name: update project using git and accept hostkey git: dest: "{{project_path|quote}}" - repo: "{{scm_url|quote}}" + repo: "{{scm_url}}" version: "{{scm_branch|quote}}" force: "{{scm_clean}}" accept_hostkey: "{{scm_accept_hostkey}}" @@ -42,7 +42,7 @@ - name: update project using git git: dest: "{{project_path|quote}}" - repo: "{{scm_url|quote}}" + repo: "{{scm_url}}" version: "{{scm_branch|quote}}" force: "{{scm_clean}}" #clone: "{{ scm_full_checkout }}"