migrate server - from dhcp to static ip

There are any way to migrate the existing network configuration (IP, Netmask, Gateway) to static IP using ansible?

Ansible don't have a module that do this.
But all the tools is available to configure it.

With facts you find the IP, netmask and gateway and with template module or blockinfile module you can change the file for the static configuration.