30 lines
787 B
YAML
30 lines
787 B
YAML
# vim: set filetype=yaml.ansible :
|
|
---
|
|
- name: Add hyprlang
|
|
when:
|
|
- hyprlang_configured
|
|
block:
|
|
- 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'] }}"
|
|
|
|
- name: Set hyprlang_configured
|
|
ansible.builtin.set_fact:
|
|
hyprlang_configured: true
|