have a workign copy now
This commit is contained in:
@@ -1,13 +1,36 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: cmakelang
|
||||
## Desciption: QA tools for cmake
|
||||
## Version: system
|
||||
## Methods: system
|
||||
## Helpers: -
|
||||
---
|
||||
- name: Set cmakelang default facts
|
||||
ansible.builtin.set_fact:
|
||||
cmakelang:
|
||||
install_methods:
|
||||
- system
|
||||
pkgname: cmakelang
|
||||
|
||||
- name: Add cmakelang
|
||||
when:
|
||||
- cmakelang_configured is undefined
|
||||
- "'cmakelang' not in __configured"
|
||||
block:
|
||||
- name: Add cmakelang to pkg_pipx
|
||||
- name: Set cmakelang install method
|
||||
when:
|
||||
- cmakelang_install_method is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_pipx: "{{ pkg_pipx + ['cmakelang'] }}"
|
||||
cmakelang_install_method: "{{ install_method if install_method in cmakelang.install_methods else cmakelang.install_methods[0] }}"
|
||||
|
||||
- name: Set cmakelang_configured
|
||||
- name: Configure cmakelang system install
|
||||
when:
|
||||
- cmakelang_install_method == 'system'
|
||||
block:
|
||||
- name: Queue cmakelang for system install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [cmakelang.pkgname] }}"
|
||||
|
||||
- name: Finalise cmakelang configuration
|
||||
ansible.builtin.set_fact:
|
||||
cmakelang_configured: true
|
||||
__configured: "{{ __configured | combine( { 'cmakelang': cmakelang_install_method } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user