working on more package, almost done
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
- name: Set git default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
git:
|
||||
install_methods:
|
||||
methods:
|
||||
- system
|
||||
# }}}
|
||||
- name: Configure git
|
||||
@@ -12,18 +12,22 @@
|
||||
block:
|
||||
- name: Set git install method
|
||||
when:
|
||||
- git_install_method is undefined
|
||||
- git_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
git_install_method: "{{ install_method if install_method in git.install_methods else git.install_methods[0] }}"
|
||||
git_imethod: "{{ imethod if imethod in git.methods else git.methods[0] }}"
|
||||
|
||||
- name: Configure git system install
|
||||
when:
|
||||
- git_install_method == "system"
|
||||
- git_imethod == "system"
|
||||
block:
|
||||
- name: Append git to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['git'] }}"
|
||||
|
||||
- name: Finalise git system install
|
||||
ansible.builtin.set_fact:
|
||||
git_install: "{{ git_imethod }}=git"
|
||||
|
||||
- name: Finalize git configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'git': git_install_method } ) }}"
|
||||
__configured: "{{ __configured | combine( { 'git': git_install } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user