Hey @Anvit, you can use a module called mysql_db to add or remove databases from a remote host.
And then you can just copy all the create statement into a single file and import it.
something like this:
- mysql_db: name=my_db state=import target=/tmp/dump.sql.bz