This section discusses about Ansible Playbook.
Use the following commands to install Ansible and NSX Advanced Load Balancer Python SDK:
NSX Advanced Load Balancer Python SDK - pip install avisdk
Starting with Ansible version 2.9 you need not install Avi SDK.
Install avinetworks.avisdk
Ansible role using the following command:
ansible-galaxy install -f avinetworks.avisdk
Use the following commands to download the required Ansible roles:
ansible-galaxy install avinetworks.avicontroller_kvm
ansible-galaxy install avinetworks.avise_kvm
The latest Ansible collection is available at Avi Ansible collection.
NSX Advanced Load Balancer supports API versioning for backward compatibility with automation scripts written for an object model older than the current one. Such scripts need not be updated to keep up with object model changes. Accordingly, playbook authors should set api_version to the oldest version of NSX Advanced Load Balancer in which their code can work.
The support for Ansible collection is available for NSX Advanced Load Balancer deployments. The Ansible collections are supported for Ansible version 2.9.10 or the later versions. The detailed information about installation and usage is available at Advanced Load Balancer Ansible Collection.