How to deploy apps through ansible using Hostname instead of IP if the System is in DHCP

Hi,

How can I deploy or install apps through Ansible using the hostname instead of IP, if my host system is in DHCP.

You can use hostnames in an ansible inventory without a problem. However, your DHCP server is responsible for creating DNS entries for DHCP hosts (supported by some routers and dhcp systems, look for a “register hostname with DNS” option)