Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use a container ( + PyEZ)

juniper/pyez-ansible

DOS Command:

Install python
pip install ansible

...

apt-get install openssh-server  #( to enable SSH )
apt-get install openssh-client build-essential
apt-get install libffi-dev libxslt-dev libssl-dev
apt-get install git
pip install jxmlease

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

...

1- run bash as root ( in a normal cmd.exe type  "lxrun /setdefaultuser root /y") original user was:  onmylaptop

2- 

3- pip install ansible --upgrade

Usage

ansible windows -m win_ping