41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
# 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:
|
|
methods:
|
|
- system
|
|
pkgname: cmakelang
|
|
# }}}
|
|
- name: Add cmakelang
|
|
when:
|
|
- "'cmakelang' not in __configured"
|
|
block:
|
|
- name: Set cmakelang install method
|
|
when:
|
|
- cmakelang_imethod is undefined
|
|
ansible.builtin.set_fact:
|
|
cmakelang_imethod: "{{ imethod if imethod in cmakelang.methods else cmakelang.methods[0] }}"
|
|
|
|
- name: Configure cmakelang system install
|
|
when:
|
|
- cmakelang_imethod == 'system'
|
|
block:
|
|
- name: Queue cmakelang for system install
|
|
ansible.builtin.set_fact:
|
|
pkg_sys: "{{ pkg_sys + [cmakelang.pkgname] }}"
|
|
|
|
- name: Finalise cmakelang system install
|
|
ansible.builtin.set_fact:
|
|
cmakelang_install: "{{ cmakelang_imethod }}={{ cmakelang.pkgname }}"
|
|
|
|
- name: Finalise cmakelang configuration
|
|
ansible.builtin.set_fact:
|
|
__configured: "{{ __configured | combine( { 'cmakelang': cmakelang_install } ) }}"
|