Ansible, Automation, Configuration Management, AWS, DevOps.
default. If the hostnames in your inventory (webserver1, webserver2, dbserver1) can be resolved to their respective IP addresses (192.168.1.10, 192.168.1.11, 192.168.1.20) without any issues, you can omit the ansible_host parameter, and Ansible will use the default IP resolution mechanism. Here’s