You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/collections/check_populated_inventory.yml

12 lines
259 B
YAML

---
- hosts: localhost
connection: local
gather_facts: no
tasks:
- assert:
that:
- "groups.all | length == 2"
- "groups.ungrouped == groups.all"
- "'cache_host_a' in groups.all"
- "'dynamic_host_a' in groups.all"