Avi Networks Ansible Modules
Pull request Compare This branch is 4 commits behind avinetworks:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
library
meta
tasks
tests
.travis.yml
README.md
__init__.py

README.md

avinetworks.avisdk

Build Status Ansible Galaxy

Using this role, you will be able to use the latest version, and version specific Avi Ansible Modules.

Requirements

  • python >= 2.6
  • avisdk

This role requires Ansible 2.0 or higher. Requirements are listed in the metadata file.

Please install avisdk from pip prior to running this module.


pip install avisdk --upgrade

Installation

To install the AviSDK Ansible Module, please issue the command on the machine you will run Ansible from.


ansible-galaxy install -f avinetworks.avisdk

For more information please visit http://docs.ansible.com/ansible/galaxy.html

Role Variables

Example Playbooks

The following example is generic, applies to any module.

---
- hosts: localhost
  connection: local
  roles:
    - role: avinetworks.avisdk
  tasks:
    - avi_<module_name>:
      controller: 10.10.27.90
      username: admin
      password: password
      ......

This example shows usage of the avi_healthmonitor module included in this role.

---
- hosts: localhost
  connection: local
  roles:
    - role: avinetworks.avisdk
  tasks:
    - avi_healthmonitor:
        controller: 10.10.27.90
        username: admin
        password: password
        api_version: 17.1
        https_monitor:
          http_request: HEAD / HTTP/1.0
          http_response_code:
            - HTTP_2XX
            - HTTP_3XX
        receive_timeout: 4
        failed_checks: 3
        send_interval: 10
        successful_checks: 3
        type: HEALTH_MONITOR_HTTPS
        name: MyWebsite-HTTPS

There are many more examples located at https://github.com/avinetworks/devops/tree/master/ansible and also available in the "EXAMPLES" within each module.

License

Apache 2.0

Author Information

Avi Networks Avi Networks