[infrared] install git before using it

Some tester nodes may not have git installed
The tobiko infrared plugin should check git is installed before using it
to checkout the specified tobiko version

Change-Id: Icac436fe4070c3b902905271379a2a00f7e1d6ea
This commit is contained in:
Eduardo Olivares 2022-12-20 18:36:00 +01:00
parent 18b6a2fdcd
commit 721f370521
1 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,13 @@
state: directory
register: create_dest_dir
- name: install git
ignore_errors: yes
become: true
package:
name: git
state: present
- name: "checkout files from '{{ deploy_git_repo }}[{{ deploy_git_refspec }}]' to '{{ deploy_dir }}'"
git:
dest: '{{ deploy_dir }}'