change layout for better management

- instead of just `syspkgs` and `srcpkgs` add more lists
  - `appimages`, `flatpkgs` and others as they come up
This commit is contained in:
Matthew Stobbs
2025-02-11 17:51:10 -07:00
parent 9ec814257f
commit 275f5df722
19 changed files with 295 additions and 224 deletions

View File

@@ -1,11 +1,23 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_vars:
file: lua-language-server.yml
name: _luals
- ansible.builtin.set_fact:
pkgconfig_luals: "{{ _luals | ansible.builtin.combine(pkgconfig.luals) }}"
- name: Linux specific configuration
when:
- ansible_os_family != 'Darwin'
block:
- name: Load lua-language-server config
ansible.builtin.include_vars:
file: lua-language-server.yml
name: _luals
- name: Combine loaded config with defaults
ansible.builtin.set_fact:
pkgconfig_luals: "{{ _luals | ansible.builtin.combine(pkgconfig.luals) }}"
- name: append to pkgs
- name: Append to pkgs
ansible.builtin.set_fact:
srcpkgs: "{{ srcpkgs + ['lua-language-server'] }}"
- name: Append to syspkgs
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
srcpkgs: "{{ srcpkgs + [ 'lua-language-server' ] }}"
syspkgs: "{{ syspkgs + ['lua-language-server'] }}"