just finished cbfmt
This commit is contained in:
@@ -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 } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user