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 <zxiiro@gmail.com>
Change-Id: I836ff20f6bf6f922e91ecf209e87a09f81a22795
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