From 28b2169a0a8b4f194c794ee1372d659d159bb3a1 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Tue, 29 Aug 2017 17:55:33 -0700 Subject: [PATCH] Fix errors in use-cache-repos These options need to go in the 'args' dict. Change-Id: I3981706d7f1da71061698163123b96a24f844035 --- roles/use-cached-repos/tasks/main.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/roles/use-cached-repos/tasks/main.yaml b/roles/use-cached-repos/tasks/main.yaml index c9cb1a4fd2..ee7130c99a 100644 --- a/roles/use-cached-repos/tasks/main.yaml +++ b/roles/use-cached-repos/tasks/main.yaml @@ -6,7 +6,8 @@ - name: Clone cached repo to workspace command: "git clone /opt/git/{{ item.0.name }} {{ ansible_user_dir }}/{{ item.0.src_dir}}" - creates: "{{ ansible_user_dir }}/{{ item.0.src_dir}}" + args: + creates: "{{ ansible_user_dir }}/{{ item.0.src_dir}}" when: item.1.stat.exists with_together: - "{{ zuul.projects }}" @@ -14,7 +15,8 @@ - name: Clone upstream repo to workspace command: "git clone https://{{ item.0.canonical_hostname }}/{{ item.0.name}} {{ ansible_user_dir }}/{{ item.0.src_dir}}" - creates: "{{ ansible_user_dir }}/{{ item.0.src_dir}}" + args: + creates: "{{ ansible_user_dir }}/{{ item.0.src_dir}}" when: not item.1.stat.exists with_together: - "{{ zuul.projects }}" @@ -22,5 +24,6 @@ - name: Remove origin from local git repos command: "git remote rm origin" - chdir: "{{ ansible_user_dir }}/{{ item.src_dir}}" + args: + chdir: "{{ ansible_user_dir }}/{{ item.src_dir}}" with_items: "{{ zuul.projects }}"