From ce98be183acc693be0a3abdb60e40d29ad14ccab Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Tue, 21 Jul 2020 16:06:25 -0400 Subject: [PATCH] Run an apt update before installing Git Fix "git is not available" error that is appear in Ubuntu builds which appears to be due to apt cache not being updated prior to running install commands. Signed-off-by: Thanh Ha Change-Id: I836ff20f6bf6f922e91ecf209e87a09f81a22795 --- molecule/default/prepare.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml index eff9510..824813c 100644 --- a/molecule/default/prepare.yml +++ b/molecule/default/prepare.yml @@ -10,6 +10,12 @@ when: ansible_os_family == 'RedHat' become: true + - name: Update APT cache + apt: + update_cache: yes + when: ansible_distribution == 'Ubuntu' + become: true + - name: Install Git package: name=git state=present -- 2.16.6