What if i don't wanna copy id on remote server Is there any way to make connection like using variable or something else Lets assume i have 1500 servers for freshly setup ansible , in this case i don't wanna go for hit copy id command for every time
Yes i have found the answer First solution ansible_user ansible_password ansible_sudo_password Use this in inventory file for each host or either u can create host variable file in separate Use become method in cfg file or in playbook Then create two playbook, first for genrate for adding entries in nodes sudoer file Second playbook for permanent ssh connection between control and managed node Now u can delet variable from inventory Second solution U can use ansible_ssh_private_key_file variable First genrate public private key file
Hello! What if I added a passphrase to the ssh key? Won't Ansible run into authentication issues whenever trying to connect to the remote host? How can I achieve this simplicity with more hardened security?
Hi, thanks for the video. Could you please ans the following question: Is there a way in ansible we can validate all public key’s present in authorised_keys file against a private key? I have multiple keys in my authorized_file and i want to check if all keys are good for connection one by one..
You always explain the complex term in such a simple way. Thanks Rahul
Glad to hear that
looking forward to learning more from you, thanks for helping and making these amazing videos.
More to come!
What if i don't wanna copy id on remote server
Is there any way to make connection like using variable or something else
Lets assume i have 1500 servers for freshly setup ansible , in this case i don't wanna go for hit copy id command for every time
Bro do you got the answer.??..if you got it then please help me bro .same issue .iam facing
Yes i have found the answer
First solution
ansible_user ansible_password ansible_sudo_password
Use this in inventory file for each host or either u can create host variable file in separate
Use become method in cfg file or in playbook
Then create two playbook, first for genrate for adding entries in nodes sudoer file
Second playbook for permanent ssh connection between control and managed node
Now u can delet variable from inventory
Second solution
U can use ansible_ssh_private_key_file variable
First genrate public private key file
U deserve million subscribers..the way you explain is simply great ..❤❤
You welcome and keep learning
Amazing video, thank you Rahul. Please keep the videos coming 🙂👌👌
So nice of you
Hello! What if I added a passphrase to the ssh key? Won't Ansible run into authentication issues whenever trying to connect to the remote host? How can I achieve this simplicity with more hardened security?
Hi, thanks for the video. Could you please ans the following question:
Is there a way in ansible we can validate all public key’s present in authorised_keys file against a private key? I have multiple keys in my authorized_file and i want to check if all keys are good for connection one by one..
Great work sir.
Great explanation 👌
Glad you liked it
Thanks