You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `juniper.device` collection includes a set of Ansible modules that perform specific operational and configuration tasks on devices running Junos OS.
12
+
These tasks include: installing and upgrading Junos OS, provisioning new Junos devices in the network, loading configuration changes,
19
13
retrieving information, and resetting, rebooting, or shutting down managed devices. Please refer to the
20
14
[INSTALLATION](#installation) section for instructions on installing this collection.
21
15
22
-
## juniper.junos roles by Juniper Networks
23
-
24
-
Ansible galaxy is upgrading to collections and plans to deprecate roles in future. The master branch will now have
25
-
juniper.device collection support. Juniper.junos roles have been moved to roles branch.
Since Ansible version >= 2.1, Ansible also natively includes
32
-
[core modules for Junos](http://docs.ansible.com/ansible/list_of_network_modules.html#junos). The Junos modules included
33
-
in Ansible core have names which begin with the prefix `junos_`. The Junos modules included in this Juniper.device
19
+
[core modules for Junos](https://docs.ansible.com/ansible/latest/collections/junipernetworks/junos/index.html#plugins-in-junipernetworks-junos). The Junos modules included
20
+
in Ansible core have names which begin with the prefix `junos_`. The Junos modules included in this `Juniper.device`
34
21
collection have names starting with module types. These two sets of Junos modules can coexist on the same
35
-
Ansible control machine, and an Ansible play may invoke a module from either (or both) sets. Juniper Networks recommends
36
-
using the modules in this collection when writing new playbooks that manage Junos devices.
22
+
Ansible control machine, and an Ansible playbook may invoke a module from either (or both) sets. Juniper Networks recommends
23
+
using the modules in `juniper.device` collection when writing new playbooks that manage Junos devices.
37
24
38
25
## Overview of Modules
39
26
40
-
This juniper.device collection includes the following modules:
27
+
This `juniper.device` collection includes the following modules:
41
28
42
29
-**command** — Execute one or more CLI commands on a Junos device.
43
30
-**config** — Manipulate the configuration of a Junos device.
@@ -53,11 +40,11 @@ This juniper.device collection includes the following modules:
53
40
54
41
### PyEZ Version Requirement
55
42
56
-
For ansible collection juniper.device we will need to install junos-eznc(PyEZ) version 2.6.0 or higher.
43
+
For ansible collection `juniper.device` we will need to install [junos-eznc](https://github.com/Juniper/py-junos-eznc) version 2.6.0 or higher.
57
44
58
45
### Overview of Plugins
59
46
60
-
In addition to the modules listed above, a callback_plugin `jsnapy` is available for the module `jsnapy`.
47
+
In addition to the modules listed above, a callback_plugin `jsnapy` is available for the module [jsnapy](https://github.com/Juniper/jsnapy).
61
48
62
49
The callback_plugin `jsnapy` helps to print on the screen additional information regarding jsnapy failed tests.
63
50
For each failed test, a log will be printed after the RECAP of the playbook as shown in this example:
@@ -75,8 +62,6 @@ For each failed test, a log will be printed after the RECAP of the playbook as s
@@ -167,7 +152,7 @@ You may have noticed that the base command is almost always the same. We can als
167
152
168
153
### Extending the container with additional packages
169
154
170
-
It's possible to install additional OS (Alpine) packages, Python packages (via pip), and Ansible roles or collections at container instantiation. This can be done by passing in environment variables or bind mounting files.
155
+
It's possible to install additional OS (Alpine) packages, Python packages (via pip), and Ansible collections at container instantiation. This can be done by passing in environment variables or binding mount files.
4. To execute test playbook with Local connection, you need to update the inventory file for local connection test cases by setting ansible_connection=local
5. To execute test playbook with PyEZ persistent connection, you need to update the inventory file for persistent connection test cases by setting ansible_connection=juniper.device.pyez
0 commit comments