Skip to content

Conversation

@vnitinv
Copy link
Contributor

@vnitinv vnitinv commented Jan 25, 2017

Now we can do something like

   - name: gather facts
     junos_get_facts:
       host={{ inventory_hostname }}
       user='xxxx'
       passwd='Test123'
       ssh_private_key_file='/Users/nitinkr/.ssh/id_rsa_vmx'
     register: junos

   - name: Verify JUNOS version
     debug: msg="{{junos.facts.version}}"

Here I am passing password (passphrase) for my ssh private key file.

Copy link
Contributor

@stacywsmith stacywsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me.

@stacywsmith stacywsmith merged commit 0cce6ff into Juniper:master Jan 25, 2017
@vnitinv vnitinv deleted the priv_ssh_key branch June 19, 2017 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants