Code Monkey home page Code Monkey logo

Comments (1)

stacywsmith avatar stacywsmith commented on July 2, 2024

Ansible communicates with Junos devices different than most managed nodes.

With most managed nodes, Ansible makes an SSH connection to the node, pushes modules to the node, and executes the modules on the node. In this mode, Ansible is making the SSH connection.

With Junos devices, Ansible makes a "local" connection and executes the module directly on the local machine. The module then makes a NETCONF-over-SSH connection to the Junos device. In this mode, it's the module that is making the SSH connection.

For Junos devices using a password protected SSH key, you MUST specify the "passwd" option to pass the password to the module.

There are a few ways the password can be passed to the module.
This link covers how to prompt for the password, or use a vault to store the password:
http://www.juniper.net/techpubs/en_US/junos-ansible1.0/topics/task/configuration/junos-ansible-authenticating-users.html

from ansible-junos-stdlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.