- the make helper now has distinct build stages - configure: is now defined in pkg.targets.configure - build: is now defined in pkg.targets.build - install: is now defined in pkg.targets.install - added pre-install: which is a list of targets that are looped over before install - added post-instal: which is a list of targets that are looped over after install - removed major package level variables from vars/main.yml - moving those variables into actual package level variables as defaults - if the values are defined they will be used instead of defaults
30 lines
859 B
YAML
30 lines
859 B
YAML
# vim: set filetype=yaml.ansible :
|
|
---
|
|
- name: Set git default facts # {{{
|
|
ansible.builtin.set_fact:
|
|
git:
|
|
install_methods:
|
|
- system
|
|
# }}}
|
|
- 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 } ) }}"
|