diff --git a/playbooks/dependencies-centos-9-stream.yaml b/playbooks/dependencies-centos-9-stream.yaml index 4c19db39c..157ae4f21 100644 --- a/playbooks/dependencies-centos-9-stream.yaml +++ b/playbooks/dependencies-centos-9-stream.yaml @@ -39,15 +39,17 @@ - fish - name: Download Go modules - shell: | - go mod download -x + command: go mod download -x args: chdir: '{{ zuul.project.src_dir }}/src' -- name: Set up Git submodules - shell: | - git submodule init - git submodule update +- name: Initialize Git submodules + command: git submodule init + args: + chdir: '{{ zuul.project.src_dir }}' + +- name: Update Git submodules + command: git submodule update args: chdir: '{{ zuul.project.src_dir }}' diff --git a/playbooks/dependencies-fedora-restricted.yaml b/playbooks/dependencies-fedora-restricted.yaml index b347d7a3b..f0e3649b1 100644 --- a/playbooks/dependencies-fedora-restricted.yaml +++ b/playbooks/dependencies-fedora-restricted.yaml @@ -63,15 +63,17 @@ update_cache: "{{ true if zuul.attempts > 1 else false }}" - name: Download Go modules - shell: | - go mod download -x + command: go mod download -x args: chdir: '{{ zuul.project.src_dir }}/src' -- name: Set up Git submodules - shell: | - git submodule init - git submodule update +- name: Initialize Git submodules + command: git submodule init + args: + chdir: '{{ zuul.project.src_dir }}' + +- name: Update Git submodules + command: git submodule update args: chdir: '{{ zuul.project.src_dir }}' diff --git a/playbooks/dependencies-fedora.yaml b/playbooks/dependencies-fedora.yaml index abd4ccc31..eec0ef5ac 100644 --- a/playbooks/dependencies-fedora.yaml +++ b/playbooks/dependencies-fedora.yaml @@ -39,15 +39,17 @@ - udisks2 - name: Download Go modules - shell: | - go mod download -x + command: go mod download -x args: chdir: '{{ zuul.project.src_dir }}/src' -- name: Set up Git submodules - shell: | - git submodule init - git submodule update +- name: Initialize Git submodules + command: git submodule init + args: + chdir: '{{ zuul.project.src_dir }}' + +- name: Update Git submodules + command: git submodule update args: chdir: '{{ zuul.project.src_dir }}'