- instead of just `syspkgs` and `srcpkgs` add more lists - `appimages`, `flatpkgs` and others as they come up
12 lines
318 B
YAML
12 lines
318 B
YAML
# vim: set filetype=yaml.ansible :
|
|
---
|
|
- name: "Check if task exists for {{ pkg }}"
|
|
ansible.builtin.stat:
|
|
path: "{{ role_path }}/tasks/pkgs/{{ pkg }}.yml"
|
|
register: cpkg_exists
|
|
|
|
- name: "Add include task for {{ pkg }}"
|
|
when: cpkg_exists.exists
|
|
ansible.builtin.include_tasks:
|
|
file: "pkgs/{{ pkg }}.yml"
|