24 lines
740 B
YAML
24 lines
740 B
YAML
# vim: set filetype=yaml.ansible :
|
|
---
|
|
- name: Configure git
|
|
when:
|
|
- "'git' not in __configured"
|
|
block:
|
|
- name: Set git install method
|
|
when:
|
|
- git_install_method is undefined
|
|
ansible.builtin.set_fact:
|
|
git_install_method: "{{ install_method if install_method in git.install_methods else git.install_methods[0] }}"
|
|
|
|
- name: Configure git system install
|
|
when:
|
|
- git_install_method == "system"
|
|
block:
|
|
- name: Append git to pkg_sys
|
|
ansible.builtin.set_fact:
|
|
pkg_sys: "{{ pkg_sys + ['git'] }}"
|
|
|
|
- name: Finalize git configuration
|
|
ansible.builtin.set_fact:
|
|
__configured: "{{ __configured | combine( { 'git': git_install_method } ) }}"
|