On Tue, Feb 09, 2021 at 08:30:19PM -0800, Mian.M Talha Iqbal wrote:
> I've been working with ansible for a little while now and it's really 
> awesome.
> We can manage a large number of networking devices with a single machine.
> But for that we need to establish a manual connection with the devices 
> using telnet or ssh protocol. 
> Now the question is that, Is there any way to automate the process of ssh 
> configuration on these networking devices?? *or is it compulsory to 
> establish a manual connection before we can start automating the network.*
> 
> *If there is any way to automate this process please mention.*
> 
Yes, it is possible. We do a large amount of CI testing for network
appliances, for example:

  arista eos
  cisco ios
  ciscoi iosxr
  juniper junos
  plus more

Here are a few example playbooks of how to bootstrap them:

  
https://github.com/ansible/ansible-zuul-jobs/blob/master/playbooks/ansible-network-eos-appliance/files/bootstrap.yaml
  
https://github.com/ansible/ansible-zuul-jobs/blob/master/playbooks/ansible-network-ios-appliance/files/bootstrap.yaml
  
https://github.com/ansible/ansible-zuul-jobs/blob/master/playbooks/ansible-network-iosxr-appliance/files/bootstrap.yaml
  
https://github.com/ansible/ansible-zuul-jobs/blob/master/playbooks/ansible-network-junos-appliance/files/bootstrap.yaml

In most cases, we use the default credentials to connect. Then create
the new users, SSH public key and remove the original admin.  It is 100%
automated.

For more information look at:

  https://docs.ansible.com/ansible/latest/network/index.html

Paul

> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to ansible-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-devel/469bfcb3-48d4-4cbb-acb5-070c99d41f99n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/20210210140916.GB14640%40pabelanger.users.ipa.redhat.com.

Reply via email to