# Error while running Netscaler Playbook

**URL:** <https://forum.ansible.com/t/error-while-running-netscaler-playbook/33483>\
**Category:** Ansible Project\
**Tags:** netscaler\
**Created:** [July 24, 2020, 1:39pm UTC](https://forum.ansible.com/t/error-while-running-netscaler-playbook/33483 "2020-07-24T13:39:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![1793](https://avatars.discourse-cdn.com/v4/letter/1/898d66/32.png) [@1793](https://forum.ansible.com/u/1793)\
**Post date:** [July 24, 2020, 1:39pm UTC](https://forum.ansible.com/t/error-while-running-netscaler-playbook/33483/1 "2020-07-24T13:39:28Z")

</div>

Hello,

I have the following playbook to create GLSBs for Netscaler devices using Ansible:

- hosts: netscaler

gather\_facts: False

vars:

state: present

gslb:

name: test\_gslb

vserver:

- port: ‘80’

description: ‘Generic service running on 80’

type: ‘HTTP’

method: ‘ROUNDROBIN’

backupLBMethod: ‘NONE’

servicetype: TCP

backupVServer: test\_backup

tolerance: ‘0’

tasks:

- name: Test GSLB

block:

- local\_action:

module: netscaler\_gslb\_vserver

nsip: “{{ inventory\_hostname }}”

nitro\_user: “{{ nitro\_user }}”

nitro\_pass: “{{ nitro\_pass }}”

nitro\_protocol: “https”

state: “{{ state }}”

name: “{{ [gslb.name](http://gslb.name/) }}”

validate\_certs: “{{ validate\_certs }}”

servicetype: “{{ item.servicetype }}”

backupVServer: “{{ item.backupVServer }}”

with\_items: “{{ gslb.vserver }}”

I am looking to replicate the following Netscaler Load Balancer command as an Ansible Task:

set gslb vserver gvs\_vip -backupVServer gvs\_backup-vip -lbMethod ROUNDROBIN -backupLBMethod NONE -tolerance 0

When I ran the Ansible Playbook, I get the following error:

ansible-playbook main.yml -i inventory.txt

failed: [x.x.x.x → localhost] (item={u’servicetype’: u’TCP’, u’description’: u’Generic service running on 80’, u’backupLBMethod’: u’NONE’, u’backupVServer’: u’test\_backup’, u’port’: u’80’, u’tolerance’: u’0’, u’type’: u’HTTP’, u’method’: u’ROUNDROBIN’}) =\> {“changed”: false, “item”: {“backupLBMethod”: “NONE”, “backupVServer”: “test\_backup”, “description”: “Generic service running on 80”, “method”: “ROUNDROBIN”, “port”: “80”, “servicetype”: “TCP”, “tolerance”: “0”, “type”: “HTTP”}, “msg”: “Unsupported parameters for (netscaler\_gslb\_vserver) module: backupVServer Supported parameters include: appflowlog, backuplbmethod, comment, considereffectivestate, cookie\_domain, disabled, disableprimaryondown, dnsrecordtype, domain\_bindings, domainname, dynamicweight, lbmethod, mir, name, netmask, nitro\_pass, nitro\_protocol, nitro\_timeout, nitro\_user, nsip, persistenceid, persistencetype, persistmask, save\_config, service\_bindings, servicetype, sobackupaction, somethod, sopersistence, sopersistencetimeout, sothreshold, state, timeout, tolerance, v6netmasklen, v6persistmasklen, validate\_certs”}

By looking at the Ansible netscaler\_gslb\_vserver module, I see that backupVServer is not in the list of available parameters, hence the error. Is there any way to run the Netscaler command that I specified as a task or just have Ansible run the command? Or is it not yet supported?

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [July 24, 2020, 2:27pm UTC](https://forum.ansible.com/t/error-while-running-netscaler-playbook/33483/2 "2020-07-24T14:27:02Z")

</div>

Hi

This is a 3rd party module that isn’t part of the standard ansible distribution.  
[https://developer-docs.citrix.com/projects/netscaler-ansible-modules/en/latest/modules/netscaler-gslb-vserver-module/#support](https://developer-docs.citrix.com/projects/netscaler-ansible-modules/en/latest/modules/netscaler-gslb-vserver-module/#support)

However, without knowing about those module(s) at all, the error is pretty self explanatory: you provided an unsupported module parameter.  
See [https://developer-docs.citrix.com/projects/netscaler-ansible-modules/en/latest/modules/netscaler-gslb-vserver-module/](https://developer-docs.citrix.com/projects/netscaler-ansible-modules/en/latest/modules/netscaler-gslb-vserver-module/)

---

<div class="post-metadata">

**Author:** ![1793](https://avatars.discourse-cdn.com/v4/letter/1/898d66/32.png) [@1793](https://forum.ansible.com/u/1793)\
**Post date:** [July 24, 2020, 3:55pm UTC](https://forum.ansible.com/t/error-while-running-netscaler-playbook/33483/3 "2020-07-24T15:55:37Z")

</div>

Hi Dick,

thanks for the response. I’ll reach out to support.
