Hey,
I am using the raw module to manage several remote hosts that cannot run python.
my inventory file looks like this :
[devices]
device1 ansible_ssh_host=127.0.0.1 ansible_ssh_port=30002 ansible_ssh_user=‘root’
device2 ansible_ssh_host=127.0.0.1 ansible_ssh_port=30001 ansible_ssh_user=‘root’
Now I am running the same playbook on each one of the hosts
each one of the hosts has a different password (I know I can add "ansible_ssh_password=‘password’ to the inventory but I prefer not to due to security reasons)
when I run the playbook with -k I can only insert 1 password, is there a way to manually insert a different password for each hosts using only 1 command?
$ansible-playbook -k
device1 password:
device2 password:
thanks!