Dynamic inventory on openstack

Hello team,

How to run ansible using openstack.py inventory script.

I need to run ansible playbook on ecs based on tag. So how to use it.