The Red Hat Ecosystem Catalog is the official source for discovering and learning more about the Red Hat Ecosystem of both Red Hat and certified third-party products and services.
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

892Modules8Plugins
Ansible Collection Modules for NetScaler ADC
version2 - netscaler.adc⚠️ Note: The earlier
citrix.adcansible collection is replaced with the newnetscaler.adcansible collection.The
citrix.adcansible collection is backed up by a seperate branch citrix.adc
The vision of the netscaler.adc collection is to provide a complete declarative interface to configure and manage NetScaler ADC.
If you need any feature or flexibility that is not available in the collection at the moment, please raise issues/enhancement-requests/recommendations at https://github.com/netscaler/ansible-collection-netscaleradc/issues
:envelope: For any immediate issues or help , reach out to us at NetScaler-AutomationToolkit@cloud.com !
version1 and version2 of the collectionWe refer the earlier citrix.adc ansible collection as version1 and the new netscaler.adc as version2.
This is the version2 of the NetScaler Ansible Collection. It is a complete rewrite of the collection. The collection is not backward compatible with the version1 of the collection.
citrix.adc collection will be deprecated soon and will not be maintained further. It is recommended to migrate to the netscaler.adc collection.
netscaler.adc collection (version2)The collection provides Ansible modules to configure and manage NetScaler ADC appliances. The modules are written using the NITRO API. The modules are idempotent and can be used to configure the NetScaler ADC appliances in declarative manner.
ansible-galaxy collection install netscaler.adc
ansible-galaxy collection install "git+https://github.com/citrix/citrix-adc-ansible-modules.git" [--force]
--forceoption is required if you have already installed the collection via ansible-galaxy. This will overwrite the existing collection with the latest collection from github.
ansible-galaxy collection list netscaler.adc
The above command should display the following output:
# /Users/netscaleruser/.ansible/collections/ansible_collections
Collection Version
------------- -------
netscaler.adc 2.0.x
https://netscaler.github.io/ansible-collection-netscaleradc/
Click on the desired module name in the supported_modules_matrix.md file to go to the specific module documentation
Refer to the examples directory for the sample playbooks.
Also refer playbook_anatomy.md for the anatomy of a playbook.
Every module in the collection requires the user to authenticate to the NetScaler ADC appliance. The authentication can be done using the nitro_user and nitro_pass parameters. These parameters can also be passed as environment variables NETSCALER_NITRO_USER and NETSCALER_NITRO_PASS.
Refer to the playbook_anatomy.md and examples directory for the sample playbooks.
The collection also supports authentication to NetScaler ADC appliance via token. The token can be generated using the login module. The token can be passed to other modules using the nitro_auth_token parameter. The nitro_token parameter can also be passed as environment variable NETSCALER_NITRO_AUTH_TOKEN.
Refer to the playbook_anatomy.md and sessionid_based_authentication_via_login_logout.yaml example playbook.
loginmodule requresusernameandpasswordparameters to be passed. If you do not wish to pass the username and password, refer below.
You can use the below curl command to generate the token. The token can be passed to other modules using the nitro_auth_token parameter. The nitro_auth_token parameter can also be passed as environment variable NETSCALER_NITRO_AUTH_TOKEN. The token is valid for 60 minutes.
The below command also uses jq to parse the JSON output and store the sessionid in the NETSCALER_NITRO_AUTH_TOKEN environment variable, so that it can be used by other modules.
change the
NETSCALER_NSIP,NETSCALER_NITRO_USERandNETSCALER_NITRO_PASSInstall
jqutil if not already installed.
export NETSCALER_NITRO_AUTH_TOKEN=$(curl -X POST -H "Content-Type:application/json" --insecure --silent https://NETSCALER_NSIP/nitro/v1/config/login -d '{"login":{"username":"NETSCALER_NITRO_USER", "password":"NETSCALER_NITRO_PASS"}}' | jq .sessionid)
echo $NETSCALER_NITRO_AUTH_TOKEN
This collection supports Ansible version 2.14 and above.
Please raise issues at https://github.com/netscaler/ansible-collection-netscaleradc/issues if you face any issues with the collection.
netscaler.adc collectionRefer to the features_v2.md file for the features of the netscaler.adc collection.
citrix.adc collection to netscaler.adc collectionBoth
citrix.adcandnetscaler.adccan be used in the same Ansible playbook. However, it is recommended to migrate tonetscaler.adccollection.
Refer to the migrating_from_v1_v2.md file for the migration steps.
netscaler.adc collectionRefer to the supported_modules_matrix.md file for the list of supported modules in netscaler.adc collection.
netscaler.adc collectionnitro_auth_token parameter in all modules.citrix.adc.nitro_request and citrix.adc.nitro_resource?citrix.adc playbooks (including generic citrix.adc.nitro_request and citrix.adc.nitro_resource modules) to netscaler.adc modulesfacts dictionary| Product |
|---|
| 2.5 |
| 2.6 |
| 2.7 |
This collection is self-contained and has no external Ansible dependencies.
This collection is not being used by other collections.