This repository contains a handful of playbooks to assist in completing a couple of taks for vmware NSX.
As it currently is, it is assumed you have a vmware vcentre deployed along with a nsx instance.
All additional documentations will be uploaded to the repositories Wiki:
Well first, what ever tasks need to be run, then we need to ensure the "Ensure_config_file_updated" role is included as the first one. This will update the config file to add a line to put a path in for the nsxansible repository. Then once the playbooks are ready to be ran:
$ ansible-playbook FILENAME.yml --extra-vars "ansible_sudo_pass=PASSWORD"
- FILENAME: The name of the ansible playbook you want to run
- PASSWORD: The sudo password to this machine
The ansible line of code runs the playbook with an additional variable for a password. This password is the VM's/Machine's
password. We have to include these due to stating we will become sudo with this line of code
become: true