I’ve tried AWS instance ec2 to ssh from ansible controller to target1 - target1 is also ec2.
we can ssh through >> ssh -i (keypair) ec2-user@private IP. Its working fine but is there any way to write this type of connections in inventory file?
what attributes we can use instead of ansible_connection=ssh , ansible_ssh_pass=
there is no password using to access other AWS ec2 instance