openstack restful api

Hello All,

Is there any way we can use restful api’s instead of connecting using ssh to target machine? I’ve seen we can connect to local machine using local connection(connection: local). In the same way is there any mechanism in ansible through which we can connect to remote machine using restful api’s and perform action.

Thanks,
Nanda B.

That depends on the module, many of them use an API to do their work, normally you use those with local_action. Most cloud and ‘network appliance’ modules work this way.