We can group servers through the ini syntax like so :
[app]
192.168.1.1
[bdd]
192.168.2.1we can then group both of them by mentioning only the group names
[multi:children]
app
bddIt’s also important to know that we can specify particular variables for the groups. So if we want to set variables for the multi group we would do this :
[multi:vars]
ansible_user=gdo
ansible_ssh_private_key_file=~/.ssh/id_rsa_specific