# vim: set filetype=yaml.ansible : --- - name: Add hyprlang when: - hyprlang_configured is undefined block: - name: Set hyprlang_configured ansible.builtin.set_fact: hyprlang_configured: true - name: Load hyprlang config when: - hyprlang is undefined ansible.builtin.include_tasks: file: config/hyprlang.yml - name: Ensure pkg_deps are added loop: "{{ hyprlang.pkg_deps }}" loop_control: loop_var: hyprlang_pkg_dep vars: pkg: "{{ hyprlang_pkg_dep }}" ansible.builtin.include_tasks: file: "pkgs/{{ hyprlang_pkg_dep }}.yml" - name: Append to pkg_src ansible.builtin.set_fact: pkg_sys: "{{ pkg_sys + hyprlang.build_deps }}" pkg_src: "{{ pkg_src + ['hyprlang'] }}"