Squash merge move_to_single_file_pkgs into main
This commit is contained in:
@@ -1,6 +1,46 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: cbfmt
|
||||
## Description: code block formatter
|
||||
## Version: latest
|
||||
## Methods: system
|
||||
## Helpers: cargo
|
||||
---
|
||||
- name: Set cbfmt config
|
||||
- name: Set default cbfmt values # {{{
|
||||
ansible.builtin.set_fact:
|
||||
cbfmt:
|
||||
pkgs: "{{ pkgconfig.cbfmt.pkgs }}"
|
||||
methods:
|
||||
- source
|
||||
pkgname: cbfmt
|
||||
pkg_deps:
|
||||
- cargo
|
||||
# }}}
|
||||
- name: Configure cbfmt install
|
||||
when:
|
||||
- "'cbfmt' not in __configured"
|
||||
block:
|
||||
- name: Set cbfmt install method
|
||||
when:
|
||||
- cbfmt_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
cbfmt_imethod: "{{ imethod if imethod in cbfmt.methods else cbfmt.methods[0] }}"
|
||||
|
||||
- name: Configure cbfmt source install
|
||||
when:
|
||||
- cbfmt_imethod == 'source'
|
||||
block:
|
||||
- name: Configure cbfmt cargo install
|
||||
ansible.builtin.set_fact:
|
||||
cbfmt_cargo_install:
|
||||
name: cbfmt
|
||||
- name: Queue cbfmt cargo install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + [cbfmt_cargo_install] }}"
|
||||
|
||||
- name: Finalise cbfmt cargo install
|
||||
ansible.builtin.set_fact:
|
||||
cbfmt_install: "{{ cbfmt_imethod }}={{ cbfmt_cargo_install }}"
|
||||
|
||||
- name: Finalise cbfmt configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'cbfmt': cbfmt_install } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user