2018-02-10 10:48:44 -08:00
|
|
|
- hosts: localhost
|
|
|
|
tasks:
|
|
|
|
- name: install git
|
|
|
|
package:
|
|
|
|
name: git
|
2020-08-07 14:28:10 -05:00
|
|
|
when: ansible_distribution not in ["MacOSX", "Alpine"]
|
2019-03-28 14:05:56 -07:00
|
|
|
register: git_install
|
|
|
|
- name: save install result
|
|
|
|
copy:
|
|
|
|
content: '{{ git_install }}'
|
|
|
|
dest: '{{ lookup("env", "OUTPUT_DIR") }}/git_install.json'
|