Author: | Nandor Sivok |
---|
parameter | required | default | choices | comments |
---|---|---|---|---|
action | no | disable |
|
the action you want to perform on the entity |
name | yes | hostname | name of the entity | |
nsc_host | yes | hostname or ip of your netscaler | ||
nsc_protocol | no | https | protocol used to access netscaler | |
password | yes | password | ||
type | no | server |
|
type of the entity |
user | yes | username | ||
validate_certs | no | yes |
|
If no , SSL certificates for the target url will not be validated. This should only be used on personally controlled sites using self-signed certificates. |
Note
Requires urllib
Note
Requires urllib2
# Disable the server
ansible host -m netscaler -a "nsc_host=nsc.example.com user=apiuser password=apipass"
# Enable the server
ansible host -m netscaler -a "nsc_host=nsc.example.com user=apiuser password=apipass action=enable"
# Disable the service local:8080
ansible host -m netscaler -a "nsc_host=nsc.example.com user=apiuser password=apipass name=local:8080 type=service action=disable"