How to add IP addresses in ansible host setup ?
To setup ansible hosts i.e. adding the list of IP addresses that ansibile is going to access, we define a group under which IP addresses are mentioned.
Open host configuration file:
[group_name] host1 ansible_ssh_host=192.168.1.123 host2 ansible_ssh_host=192.168.1.124 host3 ansible_ssh_host=192.168.1.125