just finished cbfmt

This commit is contained in:
Matthew Stobbs
2026-03-14 20:22:51 -06:00
parent 19ec5f341b
commit fe266d4b73
10 changed files with 166 additions and 38 deletions

View File

@@ -1,6 +1,29 @@
# vim: set filetype=yaml.ansible :
---
- name: Set cbfmt config
- name: Set default cbfmt values
ansible.builtin.set_fact:
cbfmt:
pkgs: "{{ pkgconfig.cbfmt.pkgs }}"
install_methods:
- system
pkgname: cbfmt
- name: Configure cbfmt install
when:
- "'cbfmt' not in __configured"
block:
- name: Set cbfmt install method
when:
- cbfmt_install_method is undefined
ansible.builtin.set_fact:
cbfmt_install_method: "{{ install_method if install_method in cbfmt.install_methods else cbfmt.install_methods[0] }}"
- name: Configure cbfmt system install
when:
- cbfmt_install_method == 'system'
block:
- name: Append cbfmt to system install list
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + [cbfmt.pkgname] }}"
- name: Finalise cbfmt configuration
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'cbfmt': cbfmt_install_method } ) }}"