20 lines
631 B
YAML
20 lines
631 B
YAML
# vim: set filetype=yaml.ansible :
|
|
---
|
|
- name: Configure zoxide
|
|
when:
|
|
- "'zoxide' not in __configured"
|
|
block:
|
|
- name: Set zoxied install method
|
|
when:
|
|
- zoxide_install_method is undefined
|
|
ansible.builtin.set_fact:
|
|
zoxide_install_method: "{{ install_method if intall_method in zoxide_install_methods else zoxide_install_methods[0] }}"
|
|
|
|
- name: Append zoxide to pkg_sys
|
|
ansible.builtin.set_fact:
|
|
pkg_sys: "{{ pkg_sys + ['zoxide'] }}"
|
|
|
|
- name: Set zoxide_configured
|
|
ansible.builtin.set_fact:
|
|
__configured: "{{ __configured | combine( { 'zoxide': true } ) }}"
|