prole/infrastructure/roles/dashboard/tests/defaults.yml

20 lines
709 B
YAML

---
- name: Verify dashboard role defaults are installable on Debian (no virtual packages)
hosts: localhost
connection: local
gather_facts: false
tasks:
- name: Load role defaults
ansible.builtin.include_vars:
file: "{{ playbook_dir }}/../defaults/main.yml"
- name: Ensure conky package is a concrete provider (not the virtual package)
ansible.builtin.assert:
that:
- "'conky' not in dashboard_packages_debian"
- "'conky-all' in dashboard_packages_debian"
fail_msg: >-
dashboard_packages_debian must not include the virtual 'conky' package.
Use a concrete provider such as 'conky-all', 'conky-std', or 'conky-cli'.