Fix: support more complex Ansible inventories correctly