junos

38Modules131Plugins1Dependency

Overview

Description

Ansible Network Collection for Junipernetworks Junos devices.

Readme

Juniper Networks Junos Collection

CI Codecov CI

The Ansible Juniper Networks Junos collection includes a variety of Ansible content to help automate the management of Juniper Networks Junos network appliances.

This collection has been tested against Juniper Networks Junos OS 18.4R1.

Support

As a Red Hat Ansible Certified Content, this collection is entitled to support through Ansible Automation Platform (AAP).

If a support case cannot be opened with Red Hat and the collection has been obtained either from Galaxy or GitHub, there is community support available at no charge.

You can join us on #network:ansible.com room or the Ansible Forum Network Working Group.

For more information you can check the communication section below.

Communication

For more information about communication, see the Ansible communication guide.

Ansible version compatibility

This collection has been tested against the following Ansible versions: >=2.16.0.

Plugins and modules within a collection may be tested with only specific Ansible versions. A collection may contain metadata that identifies these versions. PEP440 is the schema used to describe the versions of Ansible.

Supported connections

The Juniper Networks Junos collection supports network_cli and netconf connections.

Included content

Cliconf plugins

NameDescription
junipernetworks.junos.junosUse junos cliconf to run command on Juniper Junos OS platform

Netconf plugins

NameDescription
junipernetworks.junos.junosUse junos netconf plugin to run netconf commands on Juniper JUNOS platform

Modules

NameDescription
junipernetworks.junos.junos_acl_interfacesACL interfaces resource module
junipernetworks.junos.junos_aclsACLs resource module
junipernetworks.junos.junos_bannerManage multiline banners on Juniper JUNOS devices
junipernetworks.junos.junos_bgp_address_familyManage BGP Address Family attributes of interfaces on Junos devices.
junipernetworks.junos.junos_bgp_globalManages BGP Global configuration on devices running Juniper JUNOS.
junipernetworks.junos.junos_commandRun arbitrary commands on an Juniper JUNOS device
junipernetworks.junos.junos_configManage configuration on devices running Juniper JUNOS
junipernetworks.junos.junos_factsCollect facts from remote devices running Juniper Junos
junipernetworks.junos.junos_hostnameManage Hostname server configuration on Junos devices.
junipernetworks.junos.junos_interfacesJunos Interfaces resource module
junipernetworks.junos.junos_l2_interfacesL2 interfaces resource module
junipernetworks.junos.junos_l3_interfacesL3 interfaces resource module
junipernetworks.junos.junos_lacpGlobal Link Aggregation Control Protocol (LACP) Junos resource module
junipernetworks.junos.junos_lacp_interfacesLACP interfaces resource module
junipernetworks.junos.junos_lag_interfacesLink Aggregation Juniper JUNOS resource module
junipernetworks.junos.junos_lldp_globalLLDP resource module
junipernetworks.junos.junos_lldp_interfacesLLDP interfaces resource module
junipernetworks.junos.junos_logging_globalManage logging configuration on Junos devices.
junipernetworks.junos.junos_netconfConfigures the Junos Netconf system service
junipernetworks.junos.junos_ntp_globalManage NTP configuration on Junos devices.
junipernetworks.junos.junos_ospf_interfacesOSPF Interfaces Resource Module.
junipernetworks.junos.junos_ospfv2OSPFv2 resource module
junipernetworks.junos.junos_ospfv3OSPFv3 resource module
junipernetworks.junos.junos_packageInstalls packages on remote devices running Junos
junipernetworks.junos.junos_pingTests reachability using ping from devices running Juniper JUNOS
junipernetworks.junos.junos_prefix_listsManage prefix-lists attributes of interfaces on Junos devices.
junipernetworks.junos.junos_routing_instancesManage routing instances on Junos devices.
junipernetworks.junos.junos_routing_optionsManage routing-options configuration on Junos devices.
junipernetworks.junos.junos_rpcRuns an arbitrary RPC over NetConf on an Juniper JUNOS device
junipernetworks.junos.junos_security_policiesCreate and manage security policies on Juniper JUNOS devices
junipernetworks.junos.junos_security_policies_globalManage global security policy settings on Juniper JUNOS devices
junipernetworks.junos.junos_security_zonesManage security zones on Juniper JUNOS devices
junipernetworks.junos.junos_snmp_serverManage SNMP server configuration on Junos devices.
junipernetworks.junos.junos_static_routesStatic routes resource module
junipernetworks.junos.junos_systemManage the system attributes on Juniper JUNOS devices
junipernetworks.junos.junos_userManage local user accounts on Juniper JUNOS devices
junipernetworks.junos.junos_vlansVLANs resource module
junipernetworks.junos.junos_vrfManage the VRF definitions on Juniper JUNOS devices

Click the Content button to see the list of content included in this collection.

Installing this collection

You can install the Juniper Networks Junos collection with the Ansible Galaxy CLI:

ansible-galaxy collection install junipernetworks.junos

You can also include it in a requirements.yml file and install it with ansible-galaxy collection install -r requirements.yml, using the format:

---
collections:
  - name: junipernetworks.junos

Using this collection

You can call modules by their Fully Qualified Collection Namespace (FQCN), such as junipernetworks.junos.junos_l2_interfaces. The following example task replaces configuration changes in the existing configuration on a Juniper Networks Junos network device, using the FQCN:

---
- name: "Replace provided configuration with device configuration"
  junipernetworks.junos.junos_l2_interfaces:
    config:
      - name: ge-0/0/3
        access:
          vlan: v101
      - name: ge-0/0/4
        trunk:
          allowed_vlans:
            - vlan30
          native_vlan: 50
    state: replaced

See Also:

Contributing to this collection

We welcome community contributions to this collection. If you find problems, please open an issue or create a PR against the Juniper Networks Junos collection repository. See Contributing to Ansible-maintained collections for complete details.

You can also join us on:

  • IRC - the #ansible-network irc.libera.chat channel
  • Slack - https://ansiblenetwork.slack.com

See the Ansible Community Guide for details on contributing to Ansible.

Code of Conduct

This collection follows the Ansible project's Code of Conduct. Please read and familiarize yourself with this document.

Release notes

Release notes are available here.

Roadmap

More information

Licensing

GNU General Public License v3.0 or later.

See LICENSE to see the full text.

Certification

Product
Red Hat Ansible Automation Platform 2.5
DocumentationDependencies

This collection requires the following collections for use:

NameSummary

This collection is used by the following collections:

NameSummaryVersionType
View in Automation Hub
Red Hat logoLinkedInYouTubeFacebookTwitter

Platforms

Products & services

Try, buy, sell

Help

About Red Hat Ecosystem Catalog

The Red Hat Ecosystem Catalog is the official source for discovering and learning more about the Red Hat Ecosystem of both Red Hat and certified third-party products and services.

We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2025 Red Hat