Browse Source

Merge "mirror-workspace-git: use port when pushing git repo through ssh"

Zuul 5 months ago
parent
commit
89e386449d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      roles/mirror-workspace-git-repos/tasks/main.yaml

+ 1
- 1
roles/mirror-workspace-git-repos/tasks/main.yaml View File

@@ -7,7 +7,7 @@
7 7
   with_dict: "{{ zuul.projects }}"
8 8
 
9 9
 - name: Synchronize src repos to workspace directory
10
-  command: "git push --mirror git+ssh://{{ ansible_user }}@{{ ansible_host }}/{{ ansible_user_dir }}/{{ item.value.src_dir}}"
10
+  command: "git push --mirror git+ssh://{{ ansible_user }}@{{ ansible_host | ipwrap }}:{{ ansible_port }}/{{ ansible_user_dir }}/{{ item.value.src_dir}}"
11 11
   args:
12 12
     chdir: "{{ zuul.executor.work_root }}/{{ item.value.src_dir }}"
13 13
   with_dict: "{{ zuul.projects }}"

Loading…
Cancel
Save