From 5d09503c88a5538bf50f9f9974d276649b35d3d1 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Thu, 20 Aug 2020 13:48:44 +0530 Subject: [PATCH] Ensure git is installed in prepare-workspace-git role Since this role relies on git, let's ensure git is installed. Issue got detected when git was made build-only in [1], it's now being reverted[2]. [1] https://review.opendev.org/#/c/745678/ [2] https://review.opendev.org/#/c/747025/ Related-Bug: #1892326 Change-Id: I3115d581aa3bb8b22db1cd10e4180e8cc0e530f4 --- roles/prepare-workspace-git/tasks/main.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/prepare-workspace-git/tasks/main.yaml b/roles/prepare-workspace-git/tasks/main.yaml index 9b0715d51..c367d4c13 100644 --- a/roles/prepare-workspace-git/tasks/main.yaml +++ b/roles/prepare-workspace-git/tasks/main.yaml @@ -1,3 +1,9 @@ +- name: Ensure git is installed + package: + name: git + state: present + become: yes + - name: Find locally cached git repos stat: path: "{{ cached_repos_root }}/{{ zj_project.canonical_name }}"