fixed remaining issues
added pipx and ripgrep back. not sure where they went in the first place
This commit is contained in:
39
tasks/pkgs/ripgrep.yml
Normal file
39
tasks/pkgs/ripgrep.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: ripgrep
|
||||
## Description: modern ultra fast grep
|
||||
## Version: system
|
||||
## Methods: system
|
||||
## Helpers: -
|
||||
---
|
||||
- name: Set ripgrep default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
ripgrep:
|
||||
methods:
|
||||
- system
|
||||
pkgname:
|
||||
RedHat: ripgrep
|
||||
Debian: ripgrep
|
||||
# }}}
|
||||
- name: Configure ripgrep
|
||||
when:
|
||||
- "'ripgrep' not in __configured"
|
||||
block:
|
||||
- name: Set ripgrep install method
|
||||
when:
|
||||
- ripgrep_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
ripgrep_imethod: "{{ imethod if imethod in ripgrep.methods else ripgrep.methods[0] }}"
|
||||
|
||||
- name: Configure ripgrep system install
|
||||
when:
|
||||
- ripgrep_imethod == 'system'
|
||||
block:
|
||||
- name: Queue ripgrep for system install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [ripgrep.pkgname[os_family]] }}"
|
||||
ripgrep_install: "{{ ripgrep_imethod }}={{ ripgrep.pkgname[os_family] }}"
|
||||
|
||||
- name: Finalise ripgrep configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'ripgrep': ripgrep_install } ) }}"
|
||||
Reference in New Issue
Block a user