This document will show you how to begin using the NetScaler Ansible modules.
The version of Ansible that is required is at least 2.4.0.
Installing Ansible may be accomplished through the following methods.
Further documentation on installing Ansible may be found in github
pip install ansible
E.g. in a Debian based Linux distribution
apt-get install ansible
git clone https://github.com/ansible/ansible cd ansible source hacking/env-setup
Following any installation method you should be able to run the following code which will print out the ansible version you will be using
To install the latest version of the NetScaler modules run the following commands
git clone https://github.com/citrix/netscaler-ansible-modules cd netscaler-ansible-modules python install.py
The install script will detect where the ansible library is installed and will try to copy the module files to the appropriate directories.
The last step may require root priviledges depending on where ansible is installed.
Last we are going to see how to make a simple playbook.
- name: Create a server delegate_to: localhost gather_facts: no netscaler_server: nsip: 172.18.0.2 nitro_user: nsroot nitro_pass: nsroot state: present name: test-server-1 ipaddress: 192.168.1.1