Ansible for NSX-T
This repository contains NSX-T Ansible Modules, which one can use with Ansible to work with VMware NSX-T Data Center.
For general information about Ansible, visit the GitHub project page.
These modules are maintained by VMware.
Documentation on the NSX platform can be found at the NSX-T Documentation page
Supported NSX Objects/Workflows
The modules in this repository are focused on enabling automation of installation workflows of NSX-T.
Deployment and installation modules
Logical networking modules
We assume that ansible is already installed. These modules support ansible version 2.6 and onwards.
PyVmOmi - Python library for vCenter api.
OVF Tools - Ovftool is used for ovf deployment.
Build & Run
pip install --upgrade pyvmomi pyvim requests ssl
Download and Install Ovf tool - Ovftool
unzip ansible-for-nsxt-master.zip cd ansible-for-nsxt-master
To run a sample Ansible playbook - To create a sample test topology using deployments and install module.
Edit test_basic_topology.yml and answerfile.yml to match values to your environment.
ansible-playbook test_basic_topology.yml -vvv
The following versions of NSX are supported:
- NSX-T 2.2.*
- Ansible 2.6
The ansible-for-nsxt project team welcomes contributions from the community. Before you start working with ansible-for-nsxt, please read our Developer Certificate of Origin. All contributions to this repository must be signed as described on that page. Your signature certifies that you wrote the patch or have the right to pass it on as an open-source patch. For more detailed information, refer to CONTRIBUTING.md.
The NSX-T Ansible modules in this repository are community supported. For bugs and feature requests please open a Github Issue and label it appropriately. As this is a community supported solution there is no SLA for resolutions.
Copyright (c) 2018 VMware, Inc. All rights reserved
The NSX-T Ansible modules in this repository are available under BSD-2 license applies to all parts of the ansible-for-nsxt. You may not use them except in compliance with the License.†