# 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' not in __configured" block: - name: Set cmakelang install method when: - cmakelang_install_method is undefined ansible.builtin.set_fact: cmakelang_install_method: "{{ install_method if install_method in cmakelang.install_methods else cmakelang.install_methods[0] }}" - 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: __configured: "{{ __configured | combine( { 'cmakelang': cmakelang_install_method } ) }}"