ansible/test/integration/targets/collections/check_populated_inventory.yml
Sloane Hertel 5945415398
fix using inventory and cache plugins in a collection (#56469)
* Allow custom inventory plugins and cache plugins

If _load_name is not set correctly the cache plugin can't load the documentation (which is also the arg spec)

Fix the existing inventory plugin in the collections tests

Add integration tests for using a cache plugin in a collection

* Set the attribute on the instance instead of the class

Deprecate importing custom CacheModules directly - they should use the cache_loader
2020-03-26 12:05:46 -04:00

11 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"