Skip to content

Latest commit

 

History

History
90 lines (62 loc) · 3.78 KB

README.md

File metadata and controls

90 lines (62 loc) · 3.78 KB

Infoblox Ansible Examples

This repo contains various examples using Ansible for Infoblox Network Identity Operating System (NIOS).

Table of Contents

Ansible Module Examples

The full list of NIOS modules can be found at the NIOS module list

In addition there are the following lookup plugins:

  • nios - Query Infoblox NIOS objects
  • nios_next_ip - Return the next available IP address for a network

Configuring an IPv4 Network with nios_network

    - name: set dhcp options for a network
      nios_network:
        network: 192.168.100.0/24
        comment: sean put a comment here
        options:
          - name: domain-name
            value: ansible.com
        state: present
        provider: "{{nios_provider}}"

The full playbook can be found here: module_playbooks/configure_network.yml

Additional Examples

There are 3 other playbooks in the module_playbooks directory that can be used as examples:

Ansible Lookup Plugin Examples

The full documentation for the NIOS lookup plugin can be found here: http://docs.ansible.com/ansible/devel/plugins/lookup/nios.html

Get a host record

    - name: fetch host leaf01
      set_fact:
        host: "{{ lookup('nios', 'record:host', filter={'name': 'leaf01'}, provider=nios_provider) }}"

    - name: check the leaf01 return variable
      debug:
        var: host

The full playbook can be found here: lookup_playbooks/get_host_record.yml

Get a network view object

    - name: fetch all networkview objects
      set_fact:
        networkviews: "{{ lookup('nios', 'networkview', provider=nios_provider) }}"

    - name: check the networkviews
      debug:
        var: networkviews

The full playbook can be found here: lookup_playbooks/get_networkviews.yml


Red Hat Ansible Automation

Red Hat® Ansible® Automation includes three products:

  • Red Hat® Ansible® Engine: a fully supported product built on the foundational capabilities of the Ansible project.

  • Red Hat® Ansible® Networking Add-On: provides support for select networking modules from Arista (EOS), Cisco (IOS, IOS XR, NX-OS), Juniper (Junos OS), Open vSwitch, and VyOS.

  • Red Hat® Ansible® Tower: makes it easy to scale automation, manage complex deployments and speed productivity. Extend the power of Ansible with workflows to streamline jobs and simple tools to share solutions with your team.

Want more info? Read this blog post for more info about Engine, the networking add-on and Tower