In inventory file(.ini) we can do this by using :
app-server-1 ansible_host="123.45.67.8" ansible_user=abcd ansible_password=mypwd
but since I want to encrypt the password using ansible vault, I need to put it in
a .yml
file.
A sample example would be highly appreciated as I have tried specifying in hosts: section and in vars: section, but could not do it when each host has different password.