netscaler.adc.nsconfig module – Configuration for system config resource.
Note
This module is part of the netscaler.adc collection (version 2.6.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install netscaler.adc
.
To use it in a playbook, specify: netscaler.adc.nsconfig
.
New in netscaler.adc 2.0.0
Synopsis
Configuration for system config resource.
Parameters
Parameter |
Comments |
---|---|
Use this option to do saveconfig for all partitions Choices:
|
|
Base NITRO API path. Define only in case of an ADM service proxy call Default: |
|
Option to list all passwords changed which would not work when downgraded to older releases. Takes config file as input, if no input specified, running configuration is considered. Command => query ns config -changedpassword / query ns config -changedpassword /nsconfig/ns.conf Choices:
|
|
The option to control (enable or disable) the insertion of the actual client IP address into the HTTP header request passed from the client to one, some, or all servers attached to the system. The passed address can then be accessed through a minor modification to the server. l If cipHeader is specified, it will be used as the client IP header. l If it is not specified, then the value that has been set by the set ns config CLI command will be used as the client IP header. Choices:
|
|
The text that will be used as the client IP header. |
|
configuration File to be used to find weak passwords, if not specified, running config is taken as input. |
|
Location of the configurations. |
|
Location of the configurations. |
|
The version of the cookie inserted by system. Choices:
|
|
Port range for cache redirection services. |
|
The percentage of maxClient to be given to PEs |
|
The percentage of max limit to be given to PEs |
|
Configurations will be cleared without prompting for confirmation. Choices:
|
|
Port range configured for FTP services. |
|
The percentage of shared quota to be granted at a time for maxClient |
|
The percentage of shared quota to be granted at a time for spillover |
|
The HTTP ports on the Web server. This allows the system to perform connection off-load for any client request that has a destination port matching one of these configured ports. |
|
Interfaces of the appliances that must be bound to the NSVLAN. |
|
Suppress device specific differences. Choices:
|
|
IP address of the Citrix ADC. Commonly referred to as NSIP address. This parameter is mandatory to bring up the appliance. |
|
Types of configurations to be cleared. *
* * Note: When you clear the configurations through the cluster IP address, by specifying the level as ‘ Choices:
|
|
The ID of the managed NetScaler instance to which NetScaler Console has to configure as a proxy server. Define only in case of an ADM service proxy call |
|
The IP of the managed NetScaler instance to which NetScaler Console has to configure as a proxy server. Define only in case of an ADM service proxy call |
|
The name of the managed NetScaler instance to which NetScaler Console has to configure as a proxy server. Define only in case of an ADM service proxy call |
|
The password of the managed NetScaler instance. Define only in case of an ADM service proxy call In Settings > Administration > System Configurations > Basic Settings, if you select Prompt Credentials for Instance Login, ensure to configure username and password of a managed instance. |
|
The username of the managed NetScaler instance. Define only in case of an ADM service proxy call In Settings > Administration > System Configurations > Basic Settings, if you select Prompt Credentials for Instance Login, ensure to configure username and password of a managed instance. |
|
The maximum number of connections that will be made from the system to the web server(s) attached to it. The value entered here is applied globally to all attached servers. |
|
The maximum number of requests that the system can pass on a particular connection between the system and a server attached to it. Setting this value to 0 allows an unlimited number of requests to be passed. |
|
Netmask corresponding to the IP address. This parameter is mandatory to bring up the appliance. |
|
The IP address of the NetScaler ADC appliance acting as a proxy server. Define only in case of an ADM service proxy call Choices:
|
|
The authentication token provided by a login operation. |
|
The password with which to authenticate to the NetScaler ADC node. |
|
Which protocol to use when accessing the nitro API objects. Choices:
|
|
The username with which to authenticate to the NetScaler ADC node. |
|
The ip address of the NetScaler ADC appliance where the nitro API calls will be made. The port can be specified with the colon (:). E.g. 192.168.1.1:555. |
|
VLAN (NSVLAN) for the subnet on which the IP address resides. |
|
Format to display the difference in configurations. Choices:
|
|
The minimum Path MTU. |
|
The timeout value in minutes. |
|
RBA configurations and TACACS policies bound to system global will not be cleared if RBA is set to Choices:
|
|
If The module will not save the configuration on the NetScaler ADC node if it made no changes. Choices:
|
|
enable/disable secure flag for persistence cookie Choices:
|
|
The state of the resource being configured by the module on the NetScaler ADC node. When When Choices:
|
|
Specifies that the interfaces will be added as 802.1q tagged interfaces. Packets sent on these interface on this VLAN will have an additional 4-byte 802.1q tag which identifies the VLAN. To use 802.1q tagging, the switch connected to the appliance’s interfaces must also be configured for tagging. Choices:
|
|
File that contains the commands to be compared. Choices:
|
|
Name of the timezone |
|
If Choices:
|
|
Option to list all weak passwords (not adhering to strong password requirements). Takes config file as input, if no input specified, running configuration is considered. Command => query ns config -weakpassword / query ns config -weakpassword /nsconfig/ns.conf Choices:
|
Notes
Note
For more information on using Ansible to manage NetScaler ADC Network devices see https://www.ansible.com/integrations/networks/citrixadc.
Examples
---
- name: Sample Playbook
hosts: localhost
gather_facts: false
tasks:
- name: Sample Task | nsconfig
delegate_to: localhost
netscaler.adc.nsconfig:
state: present
ipaddress: 10.10.10.10
netmask: 255.255.255.0
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Indicates if any change is made by the module Returned: always Sample: |
|
Dictionary of before and after changes Returned: always Sample: |
|
List of differences between the actual configured object and the configuration specified in the module Returned: when changed Sample: |
|
Indicates if the module failed or not Returned: always Sample: |
|
list of logged messages by the module Returned: always Sample: |