Ansible modules to support Junos network build automation use-cases. Developed for Ansible 1.5. This library is not currently part of the Ansible distribution. Please refer to INSTALLATION section for setup.
Work in progress, please see library directory for modules. The modules are documented per-Ansible guidelines; look for the DOCSTRING within each file.
This repo assumes you have the DEPENDENCIES installed on your system. You can then git clone
this repo and run the env-setup
script in the repo directory:
user@ansible-junos-stdlib> source env-setup
This will set your $ANSIBLE_LIBRARY
variable to the repo location and the installed Ansible library path. For example:
[jeremy@ansible-junos-stdlib]$ echo $ANSIBLE_LIBRARY
/home/jeremy/Ansible/ansible-junos-stdlib/library:/usr/share/ansible
Alternatively you can copy the files in the library directory into the ansible installed directory: library/net_infrastructure
Thes modules require the following to be installed on the Ansible server:
- Ansible 1.5 or later
- Junos py-junos-eznc v0.0.5 or later
- Junos netconify v0.1.0 or later