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:
@@ -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'] }}"
|
||||
|
||||
Reference in New Issue
Block a user