Use a container ( + PyEZ)
...
https://www.juniper.net/documentation/en_US/junos-pyez/topics/task/installation/junos-pyez-server-installing.html
|
|
---|
Ubuntu Desktop 17.1: ( JLK in VMware ) |
Code Block |
---|
|
apt-get install ansible |
|
...
apt-get install python-pip |
|
...
...
#pip install ansible --upgrade |
|
...
apt-get install openssh-server #( to enable SSH ) |
|
...
apt-get install openssh-client build-essential |
|
...
apt-get install libffi-dev libxslt-dev libssl-dev |
|
...
...
...
sudo pip install junos-eznc |
|
...
pip install junos-eznc # ( for access to junos ) |
|
...
#ansible-galaxy will download and "install" the role, "init" will only create the intrastucture of a new role |
|
...
ansible-galaxy install Juniper.junos # ( for access to junos ) |
|
...
>>> quick test: #ansible localhost -m setup |
|
MobaXterm 9.4 |
Code Block |
---|
|
PATH=/drives/c/cygwin64/bin/:$PATH |
|
...
replace alias: alias python='ToolNotIncluded python' >>> alias python='/drives/c/cygwin64/bin/python2.7.exe' |
|
...
apt-get install python-paramiko gcc-g++ wget openssh curl python python-devel python-setuptools python-crypto openssl openssl-devel libffi-devel gcc-g++ python2-openssl gcc-core make |
|
...
apt-get install python #will be 2.7 |
|
Cygwin: |
...
|
Code Block |
---|
| https://pip.pypa.io/en/stable/installing/ |
|
...
...
O https://bootstrap.pypa.io/get-pip.py |
|
...
...
|
Windows 10 bash ( ubuntu) |
Code Block |
---|
|
1- run bash as root ( in a normal cmd.exe type "lxrun /setdefaultuser root /y") original user was: onmylaptop |
|
...
...
...
pip install ansible --upgrade |
|
...
...
ansible windows -m win_ping |
|
...
cd /mnt/c/Users/jkriker/Documents/GitHub/vqfx_ansible_jinja2 |
Image Modified |
|
|
|
|
|
|