Using local-exec with ansible

Hi, I’m using the new module to create vmware machines but I’m wondering how can I use the module with all the vars and the local-exec to execute ansible playbooks? Or remote-exec and local-exec so I don’t need a sleep command before running the playbook?

Thanks,
Bruno