Ansible role to setup ddclient ddclient supports many dynamic DNS providers. This role has configuration for using namecheap.