Comments (3)
Could you share the output of the playbook run?
It would be best if the output was from a verbose run of the palybook -vvv
switch
from ansible-collection-netscaleradc.
Hi,
Here is the whole config :
VARS
---
servers:
- comment: "Server11 comment"
domain: "intns11.ssq.local"
name: "intns11.ssq.local"
- comment: "Server12 comment"
domain: "intns12.ssq.local"
name: "intns12.ssq.local"
- comment: "Server13 comment"
domain: "intns13.ssq.local"
name: "intns13.ssq.local"
services:
- name: svc-test-ns11-7101-http
servicetype: HTTP
servername: "intns11.ssq.local"
port: 7101
- name: svc-test-ns12-7101-http
servicetype: HTTP
servername: "intns12.ssq.local"
port: 7101
- name: svc-test-ns13-7101-http
servicetype: HTTP
servername: "intns13.ssq.local"
port: 7101
same thing for services on other ports...
lbvservers:
- name: lb_vserver-test-1
servicetype: HTTP
port: 0
ipv46: 0.0.0.0
lbmethod: "ROUNDROBIN"
servicebindings:
- servicename: svc-test-ns11-7101-http
- servicename: svc-test-ns12-7101-http
- servicename: svc-test-ns13-7101-http
- name: lb_vserver-test-2
servicetype: HTTP
port: 0
ipv46: 0.0.0.0
lbmethod: "LEASTRESPONSETIME"
persistencetype: "COOKIEINSERT"
servicebindings:
- servicename: svc-test-ns11-8101-http
- servicename: svc-test-ns12-8101-http
- servicename: svc-test-ns13-8101-http
- name: lb_vserver-test-3
servicetype: HTTP
port: 0
ipv46: 0.0.0.0
lbmethod: "LEASTRESPONSETIME"
persistencetype: "COOKIEINSERT"
servicebindings:
- servicename: svc-test-ns11-9101-http
- servicename: svc-test-ns12-9101-http
- servicename: svc-test-ns13-9101-http
cspolicy:
- policyname: cs_pol_apps_test-1
rule: 'HTTP.REQ.URL.STARTSWITH("/test_1")'
- policyname: cs_pol_apps_test-2
rule: 'HTTP.REQ.URL.STARTSWITH("/test_2")'
- policyname: cs_pol_apps_test-3
rule: 'HTTP.REQ.URL.STARTSWITH("/test_3")'
responderpolicy:
- name: res_pol_1
rule: '(HTTP.REQ.URL.STARTSWITH("/1"))'
action: res_act_1
- name: res_pol_2
rule: '(HTTP.REQ.URL.STARTSWITH("/2"))'
action: res_act_2
- name: res_pol_3
rule: '(HTTP.REQ.URL.STARTSWITH("/3"))'
action: res_act_3
responderaction:
- name: res_act_1
target: '"HTTP/1.1 301 MOVED PERMANENTLY\r\n" + "Location: http://" + http.req.hostname.HTTP_URL_SAFE + "/test_1" + "\r\nConnection: close\r\n\r\n"'
type: respondwith
- name: res_act_2
target: '"HTTP/1.1 301 MOVED PERMANENTLY\r\n" + "Location: http://" + http.req.hostname.HTTP_URL_SAFE + "/test_2" + "\r\nConnection: close\r\n\r\n"'
type: respondwith
- name: res_act_3
target: '"HTTP/1.1 301 MOVED PERMANENTLY\r\n" + "Location: http://" + http.req.hostname.HTTP_URL_SAFE + "/test_3" + "\r\nConnection: close\r\n\r\n"'
type: respondwith
csvservers:
- name: cs_vserver-test-1
ipv46: 10.3.252.30
port: 80
servicetype: HTTP
policybindings:
- policyname: cs_pol_apps_test-1
targetlbvserver: lb_vserver-test-1
priority: 20
- policyname: cs_pol_apps_test-2
targetlbvserver: lb_vserver-test-2
priority: 30
- policyname: cs_pol_apps_test-3
targetlbvserver: lb_vserver-test-3
priority: 40
- policyname: res_pol_1
priority: 101
- policyname: res_pol_2
priority: 102
- policyname: res_pol_3
priority: 103
- name: cs_vserver-test-2
ipv46: 10.3.252.32
port: 80
servicetype: HTTP
policybindings:
- policyname: res_pol_1
priority: 101
- policyname: res_pol_2
priority: 102
- policyname: res_pol_3
priority: 103
And here is my playbook:
Note the ignore errors on the tasks to add responders so it gets through the end to configure CS VServer with all policies.
Fails: "msg": "Policy bindings differ"
When going back into the Netscaler, all the policies are properly configured and bound.
Thanks!
Simon
---
- name: Netscaler Playbook
hosts: ns-test
gather_facts: False
tasks:
- name: Include vars
include_vars: vars/app-cs.yml
- name: Create Servers
delegate_to: localhost
netscaler_server:
nitro_protocol: https
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
validate_certs: "{{ validate_certs }}"
state: present
comment: "{{ item.comment }}"
name: "{{ item.name }}"
domain: "{{ item.domain }}"
loop: "{{ servers }}"
- name: Create Services
delegate_to: localhost
netscaler_service:
nitro_protocol: https
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
validate_certs: "{{ validate_certs }}"
state: present
comment: "{{ item.comment }}"
name: "{{ item.name }}"
servicetype: "{{ item.servicetype }}"
cip: enabled
servername: "{{ item.servername }}"
port: "{{ item.port }}"
loop: "{{ services }}"
- name: Create LB VServers
delegate_to: localhost
netscaler_lb_vserver:
nitro_protocol: https
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
validate_certs: "{{ validate_certs }}"
state: present
name: "{{ item.name }}"
servicetype: "{{ item.servicetype }}"
ipv46: "{{ item.ipv46 }}"
port: "{{ item.port }}"
servicebindings: "{{ item.servicebindings }}"
loop: "{{ lbvservers }}"
- name: Create CS Policy
delegate_to: localhost
netscaler_cs_policy:
nitro_protocol: https
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
validate_certs: "{{ validate_certs }}"
state: present
policyname: "{{ item.policyname }}"
rule: "{{ item.rule }}"
loop: "{{ cspolicy }}"
- name: Add Responder Action
ignore_errors: true
delegate_to: localhost
netscaler_nitro_request:
nitro_protocol: https
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
validate_certs: "{{ validate_certs }}"
operation: add
resource: responderaction
attributes: "{{ item }}"
loop: "{{ responderaction }}"
- name: Add Responder Policy
ignore_errors: true
delegate_to: localhost
netscaler_nitro_request:
nitro_protocol: https
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
validate_certs: "{{ validate_certs }}"
operation: add
resource: responderpolicy
attributes: "{{ item }}"
loop: "{{ responderpolicy }}"
- name: Create CS VServers
delegate_to: localhost
netscaler_cs_vserver:
nitro_protocol: https
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
validate_certs: "{{ validate_certs }}"
state: present
name: "{{ item.name }}"
servicetype: "{{ item.servicetype }}"
ipv46: "{{ item.ipv46 }}"
port: "{{ item.port }}"
policybindings: "{{ item.policybindings }}"
loop: "{{ csvservers }}"
And here's the execution output with -vvv
$ ansible-playbook pb_ns-put-cs-test.yml -vvv
ansible-playbook 2.5.5
config file = /home/guests/Simon.Milhomme/SSQ/ns-ansible/ansible.cfg
configured module search path = [u'/home/guests/Simon.Milhomme/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible
executable location = /home/guests/Simon.Milhomme/ansible25/bin/ansible-playbook
python version = 2.7.5 (default, Apr 11 2018, 07:36:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
Using /home/guests/Simon.Milhomme/SSQ/ns-ansible/ansible.cfg as config file
Parsed /home/guests/Simon.Milhomme/SSQ/inventory.ini inventory source with ini plugin
PLAYBOOK: pb_ns-put-cs-test.yml ***********************************************************************************************************************************************************************************
1 plays in pb_ns-put-cs-test.yml
PLAY [Netscaler Playbook] *****************************************************************************************************************************************************************************************
META: ran handlers
TASK [Include all default extension files in vars/all and all nested directories and save the output in test. (2.2)] **********************************************************************************************
task path: /home/guests/Simon.Milhomme/SSQ/ns-ansible/pb_ns-put-cs-test.yml:10
ok: [nstest] => {
"ansible_facts": {
"cspolicy": [
{
"policyname": "cs_pol_apps_test-1",
"rule": "HTTP.REQ.URL.STARTSWITH(\"/test_1\")"
},
{
"policyname": "cs_pol_apps_test-2",
"rule": "HTTP.REQ.URL.STARTSWITH(\"/test_2\")"
},
{
"policyname": "cs_pol_apps_test-3",
"rule": "HTTP.REQ.URL.STARTSWITH(\"/test_3\")"
}
],
"csvservers": [
{
"ipv46": "10.3.252.30",
"name": "cs_vserver-test-2",
"policybindings": [
{
"policyname": "cs_pol_apps_test-1",
"priority": 20,
"targetlbvserver": "lb_vserver-test-1"
},
{
"policyname": "cs_pol_apps_test-2",
"priority": 30,
"targetlbvserver": "lb_vserver-test-2"
},
{
"policyname": "cs_pol_apps_test-3",
"priority": 40,
"targetlbvserver": "lb_vserver-test-3"
},
{
"policyname": "res_pol_1",
"priority": 101
},
{
"policyname": "res_pol_2",
"priority": 102
},
{
"policyname": "res_pol_3",
"priority": 103
}
],
"port": 80,
"servicetype": "HTTP"
},
{
"ipv46": "10.3.252.32",
"name": "cs_vserver-test-2-new",
"policybindings": [
{
"policyname": "res_pol_1",
"priority": 101
},
{
"policyname": "res_pol_2",
"priority": 102
},
{
"policyname": "res_pol_3",
"priority": 103
}
],
"port": 80,
"servicetype": "HTTP"
}
],
"lbvservers": [
{
"comment": "A quoi sert ce lbvserver",
"ipv46": "0.0.0.0",
"lbmethod": "ROUNDROBIN",
"name": "lb_vserver-test-1",
"port": 0,
"servicebindings": [
{
"servicename": "svc-test-ns11-7101-http"
},
{
"servicename": "svc-test-ns12-7101-http"
},
{
"servicename": "svc-test-ns13-7101-http"
}
],
"servicetype": "HTTP"
},
{
"comment": "A quoi sert cet autre lbvserver",
"ipv46": "0.0.0.0",
"lbmethod": "LEASTRESPONSETIME",
"name": "lb_vserver-test-2",
"persistencetype": "COOKIEINSERT",
"port": 0,
"servicebindings": [
{
"servicename": "svc-test-ns11-8101-http"
},
{
"servicename": "svc-test-ns12-8101-http"
},
{
"servicename": "svc-test-ns13-8101-http"
}
],
"servicetype": "HTTP"
},
{
"comment": "A quoi sert cet autre lbvserver",
"ipv46": "0.0.0.0",
"lbmethod": "LEASTRESPONSETIME",
"name": "lb_vserver-test-3",
"persistencetype": "COOKIEINSERT",
"port": 0,
"servicebindings": [
{
"servicename": "svc-test-ns11-9101-http"
},
{
"servicename": "svc-test-ns12-9101-http"
},
{
"servicename": "svc-test-ns13-9101-http"
}
],
"servicetype": "HTTP"
}
],
"responderaction": [
{
"name": "res_act_1",
"target": "\"HTTP/1.1 301 MOVED PERMANENTLY\\r\\n\" + \"Location: http://\" + http.req.hostname.HTTP_URL_SAFE + \"/test_1\" + \"\\r\\nConnection: close\\r\\n\\r\\n\"",
"type": "respondwith"
},
{
"name": "res_act_2",
"target": "\"HTTP/1.1 301 MOVED PERMANENTLY\\r\\n\" + \"Location: http://\" + http.req.hostname.HTTP_URL_SAFE + \"/test_2\" + \"\\r\\nConnection: close\\r\\n\\r\\n\"",
"type": "respondwith"
},
{
"name": "res_act_3",
"target": "\"HTTP/1.1 301 MOVED PERMANENTLY\\r\\n\" + \"Location: http://\" + http.req.hostname.HTTP_URL_SAFE + \"/test_3\" + \"\\r\\nConnection: close\\r\\n\\r\\n\"",
"type": "respondwith"
}
],
"responderpolicy": [
{
"action": "res_act_1",
"name": "res_pol_1",
"rule": "(HTTP.REQ.URL.STARTSWITH(\"/1\"))"
},
{
"action": "res_act_2",
"name": "res_pol_2",
"rule": "(HTTP.REQ.URL.STARTSWITH(\"/2\"))"
},
{
"action": "res_act_3",
"name": "res_pol_3",
"rule": "(HTTP.REQ.URL.STARTSWITH(\"/3\"))"
}
],
"servers": [
{
"comment": "Server11 commentaire",
"domain": "intns11.ssq.local",
"name": "intns11.ssq.local"
},
{
"comment": "Server12 commentaire",
"domain": "intns12.ssq.local",
"name": "intns12.ssq.local"
},
{
"comment": "Server13 commentaire",
"domain": "intns13.ssq.local",
"name": "intns13.ssq.local"
}
],
"services": [
{
"comment": "Belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns11-7101-http",
"port": 7101,
"servername": "intns11.ssq.local",
"servicetype": "HTTP"
},
{
"comment": "Belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns12-7101-http",
"port": 7101,
"servername": "intns12.ssq.local",
"servicetype": "HTTP"
},
{
"comment": "Belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns13-7101-http",
"port": 7101,
"servername": "intns13.ssq.local",
"servicetype": "HTTP"
},
{
"comment": "Autre belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns11-8101-http",
"port": 8101,
"servername": "intns11.ssq.local",
"servicetype": "HTTP"
},
{
"comment": "Belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns12-8101-http",
"port": 8101,
"servername": "intns12.ssq.local",
"servicetype": "HTTP"
},
{
"comment": "Belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns13-8101-http",
"port": 8101,
"servername": "intns13.ssq.local",
"servicetype": "HTTP"
},
{
"comment": "Autre belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns11-9101-http",
"port": 9101,
"servername": "intns11.ssq.local",
"servicetype": "HTTP"
},
{
"comment": "Belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns12-9101-http",
"port": 9101,
"servername": "intns12.ssq.local",
"servicetype": "HTTP"
},
{
"comment": "Belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns13-9101-http",
"port": 9101,
"servername": "intns13.ssq.local",
"servicetype": "HTTP"
}
]
},
"ansible_included_var_files": [
"/home/guests/Simon.Milhomme/SSQ/ns-ansible/vars/app-cs.yml"
],
"changed": false
}
TASK [Create Servers] *********************************************************************************************************************************************************************************************
task path: /home/guests/Simon.Milhomme/SSQ/ns-ansible/pb_ns-put-cs-test.yml:13
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_server.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: exp1x391
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674009.16-123425577409426 `" && echo ansible-tmp-1533674009.16-123425577409426="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674009.16-123425577409426 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpXunpB9 TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674009.16-123425577409426/netscaler_server.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674009.16-123425577409426/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674009.16-123425577409426/netscaler_server.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674009.16-123425577409426/netscaler_server.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674009.16-123425577409426/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'comment': u'Server11 commentaire', u'domain': u'intns11.ssq.local', u'name': u'intns11.ssq.local'}) => {
"changed": false,
"invocation": {
"module_args": {
"comment": "Server11 commentaire",
"delay": null,
"disabled": false,
"domain": "intns11.ssq.local",
"domainresolveretry": null,
"graceful": null,
"instance_ip": null,
"ipaddress": null,
"ipv6address": false,
"mas_proxy_call": false,
"name": "intns11.ssq.local",
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"save_config": true,
"state": "present",
"td": null,
"translationip": null,
"translationmask": null,
"validate_certs": false
}
},
"item": {
"comment": "Server11 commentaire",
"domain": "intns11.ssq.local",
"name": "intns11.ssq.local"
},
"loglines": [
"Applying actions for state present",
"Checking if server exists",
"Checking if configured server is identical",
"Enabling server",
"Sanity checks for state present",
"Checking if server exists",
"Checking if configured server is identical"
]
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_server.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674009.9-213097958094313 `" && echo ansible-tmp-1533674009.9-213097958094313="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674009.9-213097958094313 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpUXeolk TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674009.9-213097958094313/netscaler_server.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674009.9-213097958094313/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674009.9-213097958094313/netscaler_server.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674009.9-213097958094313/netscaler_server.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674009.9-213097958094313/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'comment': u'Server12 commentaire', u'domain': u'intns12.ssq.local', u'name': u'intns12.ssq.local'}) => {
"changed": false,
"invocation": {
"module_args": {
"comment": "Server12 commentaire",
"delay": null,
"disabled": false,
"domain": "intns12.ssq.local",
"domainresolveretry": null,
"graceful": null,
"instance_ip": null,
"ipaddress": null,
"ipv6address": false,
"mas_proxy_call": false,
"name": "intns12.ssq.local",
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"save_config": true,
"state": "present",
"td": null,
"translationip": null,
"translationmask": null,
"validate_certs": false
}
},
"item": {
"comment": "Server12 commentaire",
"domain": "intns12.ssq.local",
"name": "intns12.ssq.local"
},
"loglines": [
"Applying actions for state present",
"Checking if server exists",
"Checking if configured server is identical",
"Enabling server",
"Sanity checks for state present",
"Checking if server exists",
"Checking if configured server is identical"
]
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_server.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674010.63-11210916873454 `" && echo ansible-tmp-1533674010.63-11210916873454="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674010.63-11210916873454 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpOFws5T TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674010.63-11210916873454/netscaler_server.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674010.63-11210916873454/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674010.63-11210916873454/netscaler_server.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674010.63-11210916873454/netscaler_server.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674010.63-11210916873454/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'comment': u'Server13 commentaire', u'domain': u'intns13.ssq.local', u'name': u'intns13.ssq.local'}) => {
"changed": false,
"invocation": {
"module_args": {
"comment": "Server13 commentaire",
"delay": null,
"disabled": false,
"domain": "intns13.ssq.local",
"domainresolveretry": null,
"graceful": null,
"instance_ip": null,
"ipaddress": null,
"ipv6address": false,
"mas_proxy_call": false,
"name": "intns13.ssq.local",
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"save_config": true,
"state": "present",
"td": null,
"translationip": null,
"translationmask": null,
"validate_certs": false
}
},
"item": {
"comment": "Server13 commentaire",
"domain": "intns13.ssq.local",
"name": "intns13.ssq.local"
},
"loglines": [
"Applying actions for state present",
"Checking if server exists",
"Checking if configured server is identical",
"Enabling server",
"Sanity checks for state present",
"Checking if server exists",
"Checking if configured server is identical"
]
}
TASK [Create Services] ********************************************************************************************************************************************************************************************
task path: /home/guests/Simon.Milhomme/SSQ/ns-ansible/pb_ns-put-cs-test.yml:30
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_service.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: exp1x391
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674011.65-77658915537674 `" && echo ansible-tmp-1533674011.65-77658915537674="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674011.65-77658915537674 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmp5nzIkW TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674011.65-77658915537674/netscaler_service.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674011.65-77658915537674/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674011.65-77658915537674/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674011.65-77658915537674/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674011.65-77658915537674/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'comment': u"Belle description du Service afin de s'y retrouver...", u'servicetype': u'HTTP', u'name': u'svc-test-ns11-7101-http', u'servername': u'intns11.ssq.local', u'port': 7101}) => {
"changed": false,
"invocation": {
"module_args": {
"accessdown": false,
"appflowlog": null,
"cacheable": false,
"cachetype": null,
"cip": "enabled",
"cipheader": null,
"cka": null,
"cleartextport": null,
"clttimeout": null,
"cmp": null,
"comment": "Belle description du Service afin de s'y retrouver...",
"customserverid": "None",
"disabled": false,
"dnsprofilename": null,
"downstateflush": null,
"graceful": false,
"hashid": null,
"healthmonitor": true,
"httpprofilename": null,
"instance_ip": null,
"ip": null,
"ipaddress": null,
"mas_proxy_call": false,
"maxbandwidth": null,
"maxclient": null,
"maxreq": null,
"monitor_bindings": null,
"monthreshold": null,
"name": "svc-test-ns11-7101-http",
"netprofile": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"port": 7101,
"processlocal": null,
"rtspsessionidremap": false,
"save_config": true,
"servername": "intns11.ssq.local",
"servicetype": "HTTP",
"sp": null,
"state": "present",
"svrtimeout": null,
"tcpb": null,
"tcpprofilename": null,
"useproxyport": null,
"usip": null,
"validate_certs": false
}
},
"item": {
"comment": "Belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns11-7101-http",
"port": 7101,
"servername": "intns11.ssq.local",
"servicetype": "HTTP"
},
"loglines": [
"Applying actions for state present",
"Enabling service",
"Sanity checks for state present"
]
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_service.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674012.5-161405218159735 `" && echo ansible-tmp-1533674012.5-161405218159735="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674012.5-161405218159735 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpXTnos5 TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674012.5-161405218159735/netscaler_service.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674012.5-161405218159735/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674012.5-161405218159735/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674012.5-161405218159735/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674012.5-161405218159735/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'comment': u"Belle description du Service afin de s'y retrouver...", u'servicetype': u'HTTP', u'name': u'svc-test-ns12-7101-http', u'servername': u'intns12.ssq.local', u'port': 7101}) => {
"changed": false,
"invocation": {
"module_args": {
"accessdown": false,
"appflowlog": null,
"cacheable": false,
"cachetype": null,
"cip": "enabled",
"cipheader": null,
"cka": null,
"cleartextport": null,
"clttimeout": null,
"cmp": null,
"comment": "Belle description du Service afin de s'y retrouver...",
"customserverid": "None",
"disabled": false,
"dnsprofilename": null,
"downstateflush": null,
"graceful": false,
"hashid": null,
"healthmonitor": true,
"httpprofilename": null,
"instance_ip": null,
"ip": null,
"ipaddress": null,
"mas_proxy_call": false,
"maxbandwidth": null,
"maxclient": null,
"maxreq": null,
"monitor_bindings": null,
"monthreshold": null,
"name": "svc-test-ns12-7101-http",
"netprofile": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"port": 7101,
"processlocal": null,
"rtspsessionidremap": false,
"save_config": true,
"servername": "intns12.ssq.local",
"servicetype": "HTTP",
"sp": null,
"state": "present",
"svrtimeout": null,
"tcpb": null,
"tcpprofilename": null,
"useproxyport": null,
"usip": null,
"validate_certs": false
}
},
"item": {
"comment": "Belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns12-7101-http",
"port": 7101,
"servername": "intns12.ssq.local",
"servicetype": "HTTP"
},
"loglines": [
"Applying actions for state present",
"Enabling service",
"Sanity checks for state present"
]
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_service.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674013.35-10906293713143 `" && echo ansible-tmp-1533674013.35-10906293713143="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674013.35-10906293713143 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpVRvnQp TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674013.35-10906293713143/netscaler_service.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674013.35-10906293713143/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674013.35-10906293713143/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674013.35-10906293713143/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674013.35-10906293713143/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'comment': u"Belle description du Service afin de s'y retrouver...", u'servicetype': u'HTTP', u'name': u'svc-test-ns13-7101-http', u'servername': u'intns13.ssq.local', u'port': 7101}) => {
"changed": false,
"invocation": {
"module_args": {
"accessdown": false,
"appflowlog": null,
"cacheable": false,
"cachetype": null,
"cip": "enabled",
"cipheader": null,
"cka": null,
"cleartextport": null,
"clttimeout": null,
"cmp": null,
"comment": "Belle description du Service afin de s'y retrouver...",
"customserverid": "None",
"disabled": false,
"dnsprofilename": null,
"downstateflush": null,
"graceful": false,
"hashid": null,
"healthmonitor": true,
"httpprofilename": null,
"instance_ip": null,
"ip": null,
"ipaddress": null,
"mas_proxy_call": false,
"maxbandwidth": null,
"maxclient": null,
"maxreq": null,
"monitor_bindings": null,
"monthreshold": null,
"name": "svc-test-ns13-7101-http",
"netprofile": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"port": 7101,
"processlocal": null,
"rtspsessionidremap": false,
"save_config": true,
"servername": "intns13.ssq.local",
"servicetype": "HTTP",
"sp": null,
"state": "present",
"svrtimeout": null,
"tcpb": null,
"tcpprofilename": null,
"useproxyport": null,
"usip": null,
"validate_certs": false
}
},
"item": {
"comment": "Belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns13-7101-http",
"port": 7101,
"servername": "intns13.ssq.local",
"servicetype": "HTTP"
},
"loglines": [
"Applying actions for state present",
"Enabling service",
"Sanity checks for state present"
]
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_service.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674014.18-234100775385935 `" && echo ansible-tmp-1533674014.18-234100775385935="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674014.18-234100775385935 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpe0nwPp TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674014.18-234100775385935/netscaler_service.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674014.18-234100775385935/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674014.18-234100775385935/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674014.18-234100775385935/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674014.18-234100775385935/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'comment': u"Autre belle description du Service afin de s'y retrouver...", u'servicetype': u'HTTP', u'name': u'svc-test-ns11-8101-http', u'servername': u'intns11.ssq.local', u'port': 8101}) => {
"changed": false,
"invocation": {
"module_args": {
"accessdown": false,
"appflowlog": null,
"cacheable": false,
"cachetype": null,
"cip": "enabled",
"cipheader": null,
"cka": null,
"cleartextport": null,
"clttimeout": null,
"cmp": null,
"comment": "Autre belle description du Service afin de s'y retrouver...",
"customserverid": "None",
"disabled": false,
"dnsprofilename": null,
"downstateflush": null,
"graceful": false,
"hashid": null,
"healthmonitor": true,
"httpprofilename": null,
"instance_ip": null,
"ip": null,
"ipaddress": null,
"mas_proxy_call": false,
"maxbandwidth": null,
"maxclient": null,
"maxreq": null,
"monitor_bindings": null,
"monthreshold": null,
"name": "svc-test-ns11-8101-http",
"netprofile": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"port": 8101,
"processlocal": null,
"rtspsessionidremap": false,
"save_config": true,
"servername": "intns11.ssq.local",
"servicetype": "HTTP",
"sp": null,
"state": "present",
"svrtimeout": null,
"tcpb": null,
"tcpprofilename": null,
"useproxyport": null,
"usip": null,
"validate_certs": false
}
},
"item": {
"comment": "Autre belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns11-8101-http",
"port": 8101,
"servername": "intns11.ssq.local",
"servicetype": "HTTP"
},
"loglines": [
"Applying actions for state present",
"Enabling service",
"Sanity checks for state present"
]
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_service.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674014.99-254344643881038 `" && echo ansible-tmp-1533674014.99-254344643881038="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674014.99-254344643881038 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmp7w5KYu TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674014.99-254344643881038/netscaler_service.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674014.99-254344643881038/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674014.99-254344643881038/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674014.99-254344643881038/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674014.99-254344643881038/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'comment': u"Belle description du Service afin de s'y retrouver...", u'servicetype': u'HTTP', u'name': u'svc-test-ns12-8101-http', u'servername': u'intns12.ssq.local', u'port': 8101}) => {
"changed": false,
"invocation": {
"module_args": {
"accessdown": false,
"appflowlog": null,
"cacheable": false,
"cachetype": null,
"cip": "enabled",
"cipheader": null,
"cka": null,
"cleartextport": null,
"clttimeout": null,
"cmp": null,
"comment": "Belle description du Service afin de s'y retrouver...",
"customserverid": "None",
"disabled": false,
"dnsprofilename": null,
"downstateflush": null,
"graceful": false,
"hashid": null,
"healthmonitor": true,
"httpprofilename": null,
"instance_ip": null,
"ip": null,
"ipaddress": null,
"mas_proxy_call": false,
"maxbandwidth": null,
"maxclient": null,
"maxreq": null,
"monitor_bindings": null,
"monthreshold": null,
"name": "svc-test-ns12-8101-http",
"netprofile": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"port": 8101,
"processlocal": null,
"rtspsessionidremap": false,
"save_config": true,
"servername": "intns12.ssq.local",
"servicetype": "HTTP",
"sp": null,
"state": "present",
"svrtimeout": null,
"tcpb": null,
"tcpprofilename": null,
"useproxyport": null,
"usip": null,
"validate_certs": false
}
},
"item": {
"comment": "Belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns12-8101-http",
"port": 8101,
"servername": "intns12.ssq.local",
"servicetype": "HTTP"
},
"loglines": [
"Applying actions for state present",
"Enabling service",
"Sanity checks for state present"
]
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_service.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674015.81-114175245376833 `" && echo ansible-tmp-1533674015.81-114175245376833="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674015.81-114175245376833 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpqewcTE TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674015.81-114175245376833/netscaler_service.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674015.81-114175245376833/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674015.81-114175245376833/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674015.81-114175245376833/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674015.81-114175245376833/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'comment': u"Belle description du Service afin de s'y retrouver...", u'servicetype': u'HTTP', u'name': u'svc-test-ns13-8101-http', u'servername': u'intns13.ssq.local', u'port': 8101}) => {
"changed": false,
"invocation": {
"module_args": {
"accessdown": false,
"appflowlog": null,
"cacheable": false,
"cachetype": null,
"cip": "enabled",
"cipheader": null,
"cka": null,
"cleartextport": null,
"clttimeout": null,
"cmp": null,
"comment": "Belle description du Service afin de s'y retrouver...",
"customserverid": "None",
"disabled": false,
"dnsprofilename": null,
"downstateflush": null,
"graceful": false,
"hashid": null,
"healthmonitor": true,
"httpprofilename": null,
"instance_ip": null,
"ip": null,
"ipaddress": null,
"mas_proxy_call": false,
"maxbandwidth": null,
"maxclient": null,
"maxreq": null,
"monitor_bindings": null,
"monthreshold": null,
"name": "svc-test-ns13-8101-http",
"netprofile": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"port": 8101,
"processlocal": null,
"rtspsessionidremap": false,
"save_config": true,
"servername": "intns13.ssq.local",
"servicetype": "HTTP",
"sp": null,
"state": "present",
"svrtimeout": null,
"tcpb": null,
"tcpprofilename": null,
"useproxyport": null,
"usip": null,
"validate_certs": false
}
},
"item": {
"comment": "Belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns13-8101-http",
"port": 8101,
"servername": "intns13.ssq.local",
"servicetype": "HTTP"
},
"loglines": [
"Applying actions for state present",
"Enabling service",
"Sanity checks for state present"
]
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_service.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674016.63-160491925698835 `" && echo ansible-tmp-1533674016.63-160491925698835="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674016.63-160491925698835 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpiG_Mo_ TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674016.63-160491925698835/netscaler_service.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674016.63-160491925698835/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674016.63-160491925698835/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674016.63-160491925698835/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674016.63-160491925698835/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'comment': u"Autre belle description du Service afin de s'y retrouver...", u'servicetype': u'HTTP', u'name': u'svc-test-ns11-9101-http', u'servername': u'intns11.ssq.local', u'port': 9101}) => {
"changed": false,
"invocation": {
"module_args": {
"accessdown": false,
"appflowlog": null,
"cacheable": false,
"cachetype": null,
"cip": "enabled",
"cipheader": null,
"cka": null,
"cleartextport": null,
"clttimeout": null,
"cmp": null,
"comment": "Autre belle description du Service afin de s'y retrouver...",
"customserverid": "None",
"disabled": false,
"dnsprofilename": null,
"downstateflush": null,
"graceful": false,
"hashid": null,
"healthmonitor": true,
"httpprofilename": null,
"instance_ip": null,
"ip": null,
"ipaddress": null,
"mas_proxy_call": false,
"maxbandwidth": null,
"maxclient": null,
"maxreq": null,
"monitor_bindings": null,
"monthreshold": null,
"name": "svc-test-ns11-9101-http",
"netprofile": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"port": 9101,
"processlocal": null,
"rtspsessionidremap": false,
"save_config": true,
"servername": "intns11.ssq.local",
"servicetype": "HTTP",
"sp": null,
"state": "present",
"svrtimeout": null,
"tcpb": null,
"tcpprofilename": null,
"useproxyport": null,
"usip": null,
"validate_certs": false
}
},
"item": {
"comment": "Autre belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns11-9101-http",
"port": 9101,
"servername": "intns11.ssq.local",
"servicetype": "HTTP"
},
"loglines": [
"Applying actions for state present",
"Enabling service",
"Sanity checks for state present"
]
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_service.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674017.46-81913526905683 `" && echo ansible-tmp-1533674017.46-81913526905683="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674017.46-81913526905683 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmp91Iq9X TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674017.46-81913526905683/netscaler_service.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674017.46-81913526905683/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674017.46-81913526905683/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674017.46-81913526905683/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674017.46-81913526905683/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'comment': u"Belle description du Service afin de s'y retrouver...", u'servicetype': u'HTTP', u'name': u'svc-test-ns12-9101-http', u'servername': u'intns12.ssq.local', u'port': 9101}) => {
"changed": false,
"invocation": {
"module_args": {
"accessdown": false,
"appflowlog": null,
"cacheable": false,
"cachetype": null,
"cip": "enabled",
"cipheader": null,
"cka": null,
"cleartextport": null,
"clttimeout": null,
"cmp": null,
"comment": "Belle description du Service afin de s'y retrouver...",
"customserverid": "None",
"disabled": false,
"dnsprofilename": null,
"downstateflush": null,
"graceful": false,
"hashid": null,
"healthmonitor": true,
"httpprofilename": null,
"instance_ip": null,
"ip": null,
"ipaddress": null,
"mas_proxy_call": false,
"maxbandwidth": null,
"maxclient": null,
"maxreq": null,
"monitor_bindings": null,
"monthreshold": null,
"name": "svc-test-ns12-9101-http",
"netprofile": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"port": 9101,
"processlocal": null,
"rtspsessionidremap": false,
"save_config": true,
"servername": "intns12.ssq.local",
"servicetype": "HTTP",
"sp": null,
"state": "present",
"svrtimeout": null,
"tcpb": null,
"tcpprofilename": null,
"useproxyport": null,
"usip": null,
"validate_certs": false
}
},
"item": {
"comment": "Belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns12-9101-http",
"port": 9101,
"servername": "intns12.ssq.local",
"servicetype": "HTTP"
},
"loglines": [
"Applying actions for state present",
"Enabling service",
"Sanity checks for state present"
]
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_service.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674018.3-177980625786785 `" && echo ansible-tmp-1533674018.3-177980625786785="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674018.3-177980625786785 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpJmgxtl TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674018.3-177980625786785/netscaler_service.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674018.3-177980625786785/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674018.3-177980625786785/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674018.3-177980625786785/netscaler_service.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674018.3-177980625786785/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'comment': u"Belle description du Service afin de s'y retrouver...", u'servicetype': u'HTTP', u'name': u'svc-test-ns13-9101-http', u'servername': u'intns13.ssq.local', u'port': 9101}) => {
"changed": false,
"invocation": {
"module_args": {
"accessdown": false,
"appflowlog": null,
"cacheable": false,
"cachetype": null,
"cip": "enabled",
"cipheader": null,
"cka": null,
"cleartextport": null,
"clttimeout": null,
"cmp": null,
"comment": "Belle description du Service afin de s'y retrouver...",
"customserverid": "None",
"disabled": false,
"dnsprofilename": null,
"downstateflush": null,
"graceful": false,
"hashid": null,
"healthmonitor": true,
"httpprofilename": null,
"instance_ip": null,
"ip": null,
"ipaddress": null,
"mas_proxy_call": false,
"maxbandwidth": null,
"maxclient": null,
"maxreq": null,
"monitor_bindings": null,
"monthreshold": null,
"name": "svc-test-ns13-9101-http",
"netprofile": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"port": 9101,
"processlocal": null,
"rtspsessionidremap": false,
"save_config": true,
"servername": "intns13.ssq.local",
"servicetype": "HTTP",
"sp": null,
"state": "present",
"svrtimeout": null,
"tcpb": null,
"tcpprofilename": null,
"useproxyport": null,
"usip": null,
"validate_certs": false
}
},
"item": {
"comment": "Belle description du Service afin de s'y retrouver...",
"name": "svc-test-ns13-9101-http",
"port": 9101,
"servername": "intns13.ssq.local",
"servicetype": "HTTP"
},
"loglines": [
"Applying actions for state present",
"Enabling service",
"Sanity checks for state present"
]
}
TASK [Create LB VServers] *****************************************************************************************************************************************************************************************
task path: /home/guests/Simon.Milhomme/SSQ/ns-ansible/pb_ns-put-cs-test.yml:50
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_lb_vserver.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: exp1x391
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674019.35-173872475924992 `" && echo ansible-tmp-1533674019.35-173872475924992="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674019.35-173872475924992 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpMcJINI TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674019.35-173872475924992/netscaler_lb_vserver.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674019.35-173872475924992/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674019.35-173872475924992/netscaler_lb_vserver.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674019.35-173872475924992/netscaler_lb_vserver.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674019.35-173872475924992/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'comment': u'A quoi sert ce lbvserver', u'ipv46': u'0.0.0.0', u'servicetype': u'HTTP', u'name': u'lb_vserver-test-1', u'lbmethod': u'ROUNDROBIN', u'servicebindings': [{u'servicename': u'svc-test-ns11-7101-http'}, {u'servicename': u'svc-test-ns12-7101-http'}, {u'servicename': u'svc-test-ns13-7101-http'}], u'port': 0}) => {
"changed": false,
"invocation": {
"module_args": {
"appflowlog": null,
"authentication": null,
"authenticationhost": null,
"authn401": null,
"authnprofile": null,
"authnvsname": null,
"backuplbmethod": null,
"backuppersistencetimeout": null,
"bypassaaaa": null,
"cacheable": null,
"clttimeout": null,
"comment": null,
"connfailover": null,
"cookiename": null,
"datalength": null,
"dataoffset": null,
"dbprofilename": null,
"dbslb": null,
"disabled": false,
"disableprimaryondown": null,
"dns64": null,
"dnsprofilename": null,
"downstateflush": null,
"hashlength": null,
"healththreshold": null,
"httpprofilename": null,
"icmpvsrresponse": null,
"insertvserveripport": null,
"instance_ip": null,
"ipmask": null,
"ippattern": null,
"ipv46": "0.0.0.0",
"l2conn": null,
"lbmethod": null,
"listenpolicy": null,
"listenpriority": null,
"m": null,
"macmoderetainvlan": null,
"mas_proxy_call": false,
"maxautoscalemembers": null,
"minautoscalemembers": null,
"mssqlserverversion": null,
"mysqlcharacterset": null,
"mysqlprotocolversion": null,
"mysqlservercapabilities": null,
"mysqlserverversion": null,
"name": "lb_vserver-test-1",
"netmask": null,
"netprofile": null,
"newservicerequest": null,
"newservicerequestincrementinterval": null,
"newservicerequestunit": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"oracleserverversion": null,
"persistencebackup": null,
"persistencetype": null,
"persistmask": null,
"port": 0,
"processlocal": null,
"push": null,
"pushlabel": null,
"pushmulticlients": null,
"pushvserver": null,
"range": null,
"recursionavailable": null,
"redirectportrewrite": null,
"redirurl": null,
"rhistate": null,
"rtspnat": null,
"save_config": true,
"servicebindings": [
{
"servicename": "svc-test-ns11-7101-http"
},
{
"servicename": "svc-test-ns12-7101-http"
},
{
"servicename": "svc-test-ns13-7101-http"
}
],
"servicegroupbindings": null,
"servicetype": "HTTP",
"sessionless": null,
"skippersistency": null,
"sobackupaction": null,
"somethod": null,
"sopersistence": null,
"sopersistencetimeout": null,
"sothreshold": null,
"ssl_certkey": null,
"state": "present",
"tcpprofilename": null,
"timeout": null,
"tosid": null,
"v6netmasklen": null,
"v6persistmasklen": null,
"validate_certs": false,
"vipheader": null
}
},
"item": {
"comment": "A quoi sert ce lbvserver",
"ipv46": "0.0.0.0",
"lbmethod": "ROUNDROBIN",
"name": "lb_vserver-test-1",
"port": 0,
"servicebindings": [
{
"servicename": "svc-test-ns11-7101-http"
},
{
"servicename": "svc-test-ns12-7101-http"
},
{
"servicename": "svc-test-ns13-7101-http"
}
],
"servicetype": "HTTP"
},
"loglines": [
"Applying actions for state present",
"Checking if lb vserver exists",
"Checking if configured lb vserver is identical",
"Present noop",
"service_bindings_identical",
"Getting configured service bindings",
"Getting actual service bindings",
"s diff {}",
"s diff {}",
"s diff {}",
"servicegroup_bindings_identical",
"Getting configured service group bindings",
"Getting actual service group bindings",
"len 0",
"Enabling lb server",
"Sanity checks for state present",
"Checking if lb vserver exists",
"Checking if configured lb vserver is identical",
"service_bindings_identical",
"Getting configured service bindings",
"Getting actual service bindings",
"s diff {}",
"s diff {}",
"s diff {}",
"servicegroup_bindings_identical",
"Getting configured service group bindings",
"Getting actual service group bindings",
"len 0"
]
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_lb_vserver.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674020.3-143429978849680 `" && echo ansible-tmp-1533674020.3-143429978849680="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674020.3-143429978849680 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpEfcwhx TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674020.3-143429978849680/netscaler_lb_vserver.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674020.3-143429978849680/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674020.3-143429978849680/netscaler_lb_vserver.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674020.3-143429978849680/netscaler_lb_vserver.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674020.3-143429978849680/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'comment': u'A quoi sert cet autre lbvserver', u'ipv46': u'0.0.0.0', u'servicetype': u'HTTP', u'name': u'lb_vserver-test-2', u'persistencetype': u'COOKIEINSERT', u'port': 0, u'servicebindings': [{u'servicename': u'svc-test-ns11-8101-http'}, {u'servicename': u'svc-test-ns12-8101-http'}, {u'servicename': u'svc-test-ns13-8101-http'}], u'lbmethod': u'LEASTRESPONSETIME'}) => {
"changed": false,
"invocation": {
"module_args": {
"appflowlog": null,
"authentication": null,
"authenticationhost": null,
"authn401": null,
"authnprofile": null,
"authnvsname": null,
"backuplbmethod": null,
"backuppersistencetimeout": null,
"bypassaaaa": null,
"cacheable": null,
"clttimeout": null,
"comment": null,
"connfailover": null,
"cookiename": null,
"datalength": null,
"dataoffset": null,
"dbprofilename": null,
"dbslb": null,
"disabled": false,
"disableprimaryondown": null,
"dns64": null,
"dnsprofilename": null,
"downstateflush": null,
"hashlength": null,
"healththreshold": null,
"httpprofilename": null,
"icmpvsrresponse": null,
"insertvserveripport": null,
"instance_ip": null,
"ipmask": null,
"ippattern": null,
"ipv46": "0.0.0.0",
"l2conn": null,
"lbmethod": null,
"listenpolicy": null,
"listenpriority": null,
"m": null,
"macmoderetainvlan": null,
"mas_proxy_call": false,
"maxautoscalemembers": null,
"minautoscalemembers": null,
"mssqlserverversion": null,
"mysqlcharacterset": null,
"mysqlprotocolversion": null,
"mysqlservercapabilities": null,
"mysqlserverversion": null,
"name": "lb_vserver-test-2",
"netmask": null,
"netprofile": null,
"newservicerequest": null,
"newservicerequestincrementinterval": null,
"newservicerequestunit": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"oracleserverversion": null,
"persistencebackup": null,
"persistencetype": null,
"persistmask": null,
"port": 0,
"processlocal": null,
"push": null,
"pushlabel": null,
"pushmulticlients": null,
"pushvserver": null,
"range": null,
"recursionavailable": null,
"redirectportrewrite": null,
"redirurl": null,
"rhistate": null,
"rtspnat": null,
"save_config": true,
"servicebindings": [
{
"servicename": "svc-test-ns11-8101-http"
},
{
"servicename": "svc-test-ns12-8101-http"
},
{
"servicename": "svc-test-ns13-8101-http"
}
],
"servicegroupbindings": null,
"servicetype": "HTTP",
"sessionless": null,
"skippersistency": null,
"sobackupaction": null,
"somethod": null,
"sopersistence": null,
"sopersistencetimeout": null,
"sothreshold": null,
"ssl_certkey": null,
"state": "present",
"tcpprofilename": null,
"timeout": null,
"tosid": null,
"v6netmasklen": null,
"v6persistmasklen": null,
"validate_certs": false,
"vipheader": null
}
},
"item": {
"comment": "A quoi sert cet autre lbvserver",
"ipv46": "0.0.0.0",
"lbmethod": "LEASTRESPONSETIME",
"name": "lb_vserver-test-2",
"persistencetype": "COOKIEINSERT",
"port": 0,
"servicebindings": [
{
"servicename": "svc-test-ns11-8101-http"
},
{
"servicename": "svc-test-ns12-8101-http"
},
{
"servicename": "svc-test-ns13-8101-http"
}
],
"servicetype": "HTTP"
},
"loglines": [
"Applying actions for state present",
"Checking if lb vserver exists",
"Checking if configured lb vserver is identical",
"Present noop",
"service_bindings_identical",
"Getting configured service bindings",
"Getting actual service bindings",
"s diff {}",
"s diff {}",
"s diff {}",
"servicegroup_bindings_identical",
"Getting configured service group bindings",
"Getting actual service group bindings",
"len 0",
"Enabling lb server",
"Sanity checks for state present",
"Checking if lb vserver exists",
"Checking if configured lb vserver is identical",
"service_bindings_identical",
"Getting configured service bindings",
"Getting actual service bindings",
"s diff {}",
"s diff {}",
"s diff {}",
"servicegroup_bindings_identical",
"Getting configured service group bindings",
"Getting actual service group bindings",
"len 0"
]
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_lb_vserver.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674021.25-113470069171332 `" && echo ansible-tmp-1533674021.25-113470069171332="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674021.25-113470069171332 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpsKO75D TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674021.25-113470069171332/netscaler_lb_vserver.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674021.25-113470069171332/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674021.25-113470069171332/netscaler_lb_vserver.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674021.25-113470069171332/netscaler_lb_vserver.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674021.25-113470069171332/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'comment': u'A quoi sert cet autre lbvserver', u'ipv46': u'0.0.0.0', u'servicetype': u'HTTP', u'name': u'lb_vserver-test-3', u'persistencetype': u'COOKIEINSERT', u'port': 0, u'servicebindings': [{u'servicename': u'svc-test-ns11-9101-http'}, {u'servicename': u'svc-test-ns12-9101-http'}, {u'servicename': u'svc-test-ns13-9101-http'}], u'lbmethod': u'LEASTRESPONSETIME'}) => {
"changed": false,
"invocation": {
"module_args": {
"appflowlog": null,
"authentication": null,
"authenticationhost": null,
"authn401": null,
"authnprofile": null,
"authnvsname": null,
"backuplbmethod": null,
"backuppersistencetimeout": null,
"bypassaaaa": null,
"cacheable": null,
"clttimeout": null,
"comment": null,
"connfailover": null,
"cookiename": null,
"datalength": null,
"dataoffset": null,
"dbprofilename": null,
"dbslb": null,
"disabled": false,
"disableprimaryondown": null,
"dns64": null,
"dnsprofilename": null,
"downstateflush": null,
"hashlength": null,
"healththreshold": null,
"httpprofilename": null,
"icmpvsrresponse": null,
"insertvserveripport": null,
"instance_ip": null,
"ipmask": null,
"ippattern": null,
"ipv46": "0.0.0.0",
"l2conn": null,
"lbmethod": null,
"listenpolicy": null,
"listenpriority": null,
"m": null,
"macmoderetainvlan": null,
"mas_proxy_call": false,
"maxautoscalemembers": null,
"minautoscalemembers": null,
"mssqlserverversion": null,
"mysqlcharacterset": null,
"mysqlprotocolversion": null,
"mysqlservercapabilities": null,
"mysqlserverversion": null,
"name": "lb_vserver-test-3",
"netmask": null,
"netprofile": null,
"newservicerequest": null,
"newservicerequestincrementinterval": null,
"newservicerequestunit": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"oracleserverversion": null,
"persistencebackup": null,
"persistencetype": null,
"persistmask": null,
"port": 0,
"processlocal": null,
"push": null,
"pushlabel": null,
"pushmulticlients": null,
"pushvserver": null,
"range": null,
"recursionavailable": null,
"redirectportrewrite": null,
"redirurl": null,
"rhistate": null,
"rtspnat": null,
"save_config": true,
"servicebindings": [
{
"servicename": "svc-test-ns11-9101-http"
},
{
"servicename": "svc-test-ns12-9101-http"
},
{
"servicename": "svc-test-ns13-9101-http"
}
],
"servicegroupbindings": null,
"servicetype": "HTTP",
"sessionless": null,
"skippersistency": null,
"sobackupaction": null,
"somethod": null,
"sopersistence": null,
"sopersistencetimeout": null,
"sothreshold": null,
"ssl_certkey": null,
"state": "present",
"tcpprofilename": null,
"timeout": null,
"tosid": null,
"v6netmasklen": null,
"v6persistmasklen": null,
"validate_certs": false,
"vipheader": null
}
},
"item": {
"comment": "A quoi sert cet autre lbvserver",
"ipv46": "0.0.0.0",
"lbmethod": "LEASTRESPONSETIME",
"name": "lb_vserver-test-3",
"persistencetype": "COOKIEINSERT",
"port": 0,
"servicebindings": [
{
"servicename": "svc-test-ns11-9101-http"
},
{
"servicename": "svc-test-ns12-9101-http"
},
{
"servicename": "svc-test-ns13-9101-http"
}
],
"servicetype": "HTTP"
},
"loglines": [
"Applying actions for state present",
"Checking if lb vserver exists",
"Checking if configured lb vserver is identical",
"Present noop",
"service_bindings_identical",
"Getting configured service bindings",
"Getting actual service bindings",
"s diff {}",
"s diff {}",
"s diff {}",
"servicegroup_bindings_identical",
"Getting configured service group bindings",
"Getting actual service group bindings",
"len 0",
"Enabling lb server",
"Sanity checks for state present",
"Checking if lb vserver exists",
"Checking if configured lb vserver is identical",
"service_bindings_identical",
"Getting configured service bindings",
"Getting actual service bindings",
"s diff {}",
"s diff {}",
"s diff {}",
"servicegroup_bindings_identical",
"Getting configured service group bindings",
"Getting actual service group bindings",
"len 0"
]
}
TASK [Create CS Policy] *******************************************************************************************************************************************************************************************
task path: /home/guests/Simon.Milhomme/SSQ/ns-ansible/pb_ns-put-cs-test.yml:69
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_cs_policy.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: exp1x391
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674022.44-12822652813121 `" && echo ansible-tmp-1533674022.44-12822652813121="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674022.44-12822652813121 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmphzMEJN TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674022.44-12822652813121/netscaler_cs_policy.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674022.44-12822652813121/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674022.44-12822652813121/netscaler_cs_policy.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674022.44-12822652813121/netscaler_cs_policy.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674022.44-12822652813121/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'policyname': u'cs_pol_apps_test-1', u'rule': u'HTTP.REQ.URL.STARTSWITH("/test_1")'}) => {
"changed": false,
"invocation": {
"module_args": {
"action": null,
"domain": null,
"instance_ip": null,
"mas_proxy_call": false,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"policyname": "cs_pol_apps_test-1",
"rule": "HTTP.REQ.URL.STARTSWITH(\"/test_1\")",
"save_config": true,
"state": "present",
"url": null,
"validate_certs": false
}
},
"item": {
"policyname": "cs_pol_apps_test-1",
"rule": "HTTP.REQ.URL.STARTSWITH(\"/test_1\")"
},
"loglines": [
"Sanity checks for state present",
"Checking if policy exists",
"Checking if defined policy is identical to configured",
"Sanity checks for state present",
"Checking if policy exists",
"Checking if defined policy is identical to configured"
]
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_cs_policy.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674023.16-45506583018798 `" && echo ansible-tmp-1533674023.16-45506583018798="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674023.16-45506583018798 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpUnrRr_ TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674023.16-45506583018798/netscaler_cs_policy.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674023.16-45506583018798/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674023.16-45506583018798/netscaler_cs_policy.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674023.16-45506583018798/netscaler_cs_policy.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674023.16-45506583018798/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'policyname': u'cs_pol_apps_test-2', u'rule': u'HTTP.REQ.URL.STARTSWITH("/test_2")'}) => {
"changed": false,
"invocation": {
"module_args": {
"action": null,
"domain": null,
"instance_ip": null,
"mas_proxy_call": false,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"policyname": "cs_pol_apps_test-2",
"rule": "HTTP.REQ.URL.STARTSWITH(\"/test_2\")",
"save_config": true,
"state": "present",
"url": null,
"validate_certs": false
}
},
"item": {
"policyname": "cs_pol_apps_test-2",
"rule": "HTTP.REQ.URL.STARTSWITH(\"/test_2\")"
},
"loglines": [
"Sanity checks for state present",
"Checking if policy exists",
"Checking if defined policy is identical to configured",
"Sanity checks for state present",
"Checking if policy exists",
"Checking if defined policy is identical to configured"
]
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_cs_policy.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674023.89-65419151817101 `" && echo ansible-tmp-1533674023.89-65419151817101="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674023.89-65419151817101 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmp1PFQpj TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674023.89-65419151817101/netscaler_cs_policy.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674023.89-65419151817101/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674023.89-65419151817101/netscaler_cs_policy.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674023.89-65419151817101/netscaler_cs_policy.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674023.89-65419151817101/ > /dev/null 2>&1 && sleep 0'
ok: [nstest -> localhost] => (item={u'policyname': u'cs_pol_apps_test-3', u'rule': u'HTTP.REQ.URL.STARTSWITH("/test_3")'}) => {
"changed": false,
"invocation": {
"module_args": {
"action": null,
"domain": null,
"instance_ip": null,
"mas_proxy_call": false,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"policyname": "cs_pol_apps_test-3",
"rule": "HTTP.REQ.URL.STARTSWITH(\"/test_3\")",
"save_config": true,
"state": "present",
"url": null,
"validate_certs": false
}
},
"item": {
"policyname": "cs_pol_apps_test-3",
"rule": "HTTP.REQ.URL.STARTSWITH(\"/test_3\")"
},
"loglines": [
"Sanity checks for state present",
"Checking if policy exists",
"Checking if defined policy is identical to configured",
"Sanity checks for state present",
"Checking if policy exists",
"Checking if defined policy is identical to configured"
]
}
TASK [Add Responder Action] ***************************************************************************************************************************************************************************************
task path: /home/guests/Simon.Milhomme/SSQ/ns-ansible/pb_ns-put-cs-test.yml:84
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_nitro_request.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: exp1x391
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674024.83-242027086357000 `" && echo ansible-tmp-1533674024.83-242027086357000="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674024.83-242027086357000 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmp_jAQEw TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674024.83-242027086357000/netscaler_nitro_request.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674024.83-242027086357000/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674024.83-242027086357000/netscaler_nitro_request.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674024.83-242027086357000/netscaler_nitro_request.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674024.83-242027086357000/ > /dev/null 2>&1 && sleep 0'
failed: [nstest -> localhost] (item={u'type': u'respondwith', u'name': u'res_act_1', u'target': u'"HTTP/1.1 301 MOVED PERMANENTLY\\r\\n" + "Location: http://" + http.req.hostname.HTTP_URL_SAFE + "/test_1" + "\\r\\nConnection: close\\r\\n\\r\\n"'}) => {
"changed": false,
"headers": {
"Content-Type": "application/json",
"X-NITRO-PASS": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"X-NITRO-USER": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
},
"http_response_body": "{ \"errorcode\": 528, \"message\": \"Action name is already in use [by a responder action]\", \"severity\": \"ERROR\" }",
"http_response_data": {
"cache-control": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"connection": "close",
"content-length": "109",
"content-type": "application/json; charset=utf-8",
"date": "Tue, 07 Aug 2018 20:33:39 GMT",
"expires": "Thu, 19 Nov 1981 08:52:00 GMT",
"msg": "HTTP Error 409: Conflict",
"pragma": "no-cache",
"server": "Apache",
"status": 409,
"url": "https://10.3.252.1/nitro/v1/config/responderaction"
},
"invocation": {
"module_args": {
"action": null,
"args": null,
"attributes": {
"name": "res_act_1",
"target": "\"HTTP/1.1 301 MOVED PERMANENTLY\\r\\n\" + \"Location: http://\" + http.req.hostname.HTTP_URL_SAFE + \"/test_1\" + \"\\r\\nConnection: close\\r\\n\\r\\n\"",
"type": "respondwith"
},
"expected_nitro_errorcode": [
0
],
"filter": null,
"instance_id": null,
"instance_ip": null,
"instance_name": null,
"name": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"operation": "add",
"resource": "responderaction",
"validate_certs": false
}
},
"item": {
"name": "res_act_1",
"target": "\"HTTP/1.1 301 MOVED PERMANENTLY\\r\\n\" + \"Location: http://\" + http.req.hostname.HTTP_URL_SAFE + \"/test_1\" + \"\\r\\nConnection: close\\r\\n\\r\\n\"",
"type": "respondwith"
},
"msg": "NITRO Failure",
"nitro_errorcode": 528,
"nitro_message": "Action name is already in use [by a responder action]",
"nitro_severity": "ERROR"
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_nitro_request.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674025.24-88967625406037 `" && echo ansible-tmp-1533674025.24-88967625406037="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674025.24-88967625406037 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpedIm4P TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674025.24-88967625406037/netscaler_nitro_request.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674025.24-88967625406037/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674025.24-88967625406037/netscaler_nitro_request.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674025.24-88967625406037/netscaler_nitro_request.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674025.24-88967625406037/ > /dev/null 2>&1 && sleep 0'
failed: [nstest -> localhost] (item={u'type': u'respondwith', u'name': u'res_act_2', u'target': u'"HTTP/1.1 301 MOVED PERMANENTLY\\r\\n" + "Location: http://" + http.req.hostname.HTTP_URL_SAFE + "/test_2" + "\\r\\nConnection: close\\r\\n\\r\\n"'}) => {
"changed": false,
"headers": {
"Content-Type": "application/json",
"X-NITRO-PASS": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"X-NITRO-USER": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
},
"http_response_body": "{ \"errorcode\": 528, \"message\": \"Action name is already in use [by a responder action]\", \"severity\": \"ERROR\" }",
"http_response_data": {
"cache-control": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"connection": "close",
"content-length": "109",
"content-type": "application/json; charset=utf-8",
"date": "Tue, 07 Aug 2018 20:33:40 GMT",
"expires": "Thu, 19 Nov 1981 08:52:00 GMT",
"msg": "HTTP Error 409: Conflict",
"pragma": "no-cache",
"server": "Apache",
"status": 409,
"url": "https://10.3.252.1/nitro/v1/config/responderaction"
},
"invocation": {
"module_args": {
"action": null,
"args": null,
"attributes": {
"name": "res_act_2",
"target": "\"HTTP/1.1 301 MOVED PERMANENTLY\\r\\n\" + \"Location: http://\" + http.req.hostname.HTTP_URL_SAFE + \"/test_2\" + \"\\r\\nConnection: close\\r\\n\\r\\n\"",
"type": "respondwith"
},
"expected_nitro_errorcode": [
0
],
"filter": null,
"instance_id": null,
"instance_ip": null,
"instance_name": null,
"name": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"operation": "add",
"resource": "responderaction",
"validate_certs": false
}
},
"item": {
"name": "res_act_2",
"target": "\"HTTP/1.1 301 MOVED PERMANENTLY\\r\\n\" + \"Location: http://\" + http.req.hostname.HTTP_URL_SAFE + \"/test_2\" + \"\\r\\nConnection: close\\r\\n\\r\\n\"",
"type": "respondwith"
},
"msg": "NITRO Failure",
"nitro_errorcode": 528,
"nitro_message": "Action name is already in use [by a responder action]",
"nitro_severity": "ERROR"
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_nitro_request.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674025.63-109442654257558 `" && echo ansible-tmp-1533674025.63-109442654257558="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674025.63-109442654257558 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpbzXtXy TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674025.63-109442654257558/netscaler_nitro_request.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674025.63-109442654257558/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674025.63-109442654257558/netscaler_nitro_request.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674025.63-109442654257558/netscaler_nitro_request.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674025.63-109442654257558/ > /dev/null 2>&1 && sleep 0'
failed: [nstest -> localhost] (item={u'type': u'respondwith', u'name': u'res_act_3', u'target': u'"HTTP/1.1 301 MOVED PERMANENTLY\\r\\n" + "Location: http://" + http.req.hostname.HTTP_URL_SAFE + "/test_3" + "\\r\\nConnection: close\\r\\n\\r\\n"'}) => {
"changed": false,
"headers": {
"Content-Type": "application/json",
"X-NITRO-PASS": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"X-NITRO-USER": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
},
"http_response_body": "{ \"errorcode\": 528, \"message\": \"Action name is already in use [by a responder action]\", \"severity\": \"ERROR\" }",
"http_response_data": {
"cache-control": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"connection": "close",
"content-length": "109",
"content-type": "application/json; charset=utf-8",
"date": "Tue, 07 Aug 2018 20:33:40 GMT",
"expires": "Thu, 19 Nov 1981 08:52:00 GMT",
"msg": "HTTP Error 409: Conflict",
"pragma": "no-cache",
"server": "Apache",
"status": 409,
"url": "https://10.3.252.1/nitro/v1/config/responderaction"
},
"invocation": {
"module_args": {
"action": null,
"args": null,
"attributes": {
"name": "res_act_3",
"target": "\"HTTP/1.1 301 MOVED PERMANENTLY\\r\\n\" + \"Location: http://\" + http.req.hostname.HTTP_URL_SAFE + \"/test_3\" + \"\\r\\nConnection: close\\r\\n\\r\\n\"",
"type": "respondwith"
},
"expected_nitro_errorcode": [
0
],
"filter": null,
"instance_id": null,
"instance_ip": null,
"instance_name": null,
"name": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"operation": "add",
"resource": "responderaction",
"validate_certs": false
}
},
"item": {
"name": "res_act_3",
"target": "\"HTTP/1.1 301 MOVED PERMANENTLY\\r\\n\" + \"Location: http://\" + http.req.hostname.HTTP_URL_SAFE + \"/test_3\" + \"\\r\\nConnection: close\\r\\n\\r\\n\"",
"type": "respondwith"
},
"msg": "NITRO Failure",
"nitro_errorcode": 528,
"nitro_message": "Action name is already in use [by a responder action]",
"nitro_severity": "ERROR"
}
...ignoring
TASK [Add Responder Policy] ***************************************************************************************************************************************************************************************
task path: /home/guests/Simon.Milhomme/SSQ/ns-ansible/pb_ns-put-cs-test.yml:101
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_nitro_request.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: exp1x391
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.09-54588313592380 `" && echo ansible-tmp-1533674026.09-54588313592380="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.09-54588313592380 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpYrqjOo TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.09-54588313592380/netscaler_nitro_request.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.09-54588313592380/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.09-54588313592380/netscaler_nitro_request.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.09-54588313592380/netscaler_nitro_request.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.09-54588313592380/ > /dev/null 2>&1 && sleep 0'
failed: [nstest -> localhost] (item={u'action': u'res_act_1', u'name': u'res_pol_1', u'rule': u'(HTTP.REQ.URL.STARTSWITH("/1"))'}) => {
"changed": false,
"headers": {
"Content-Type": "application/json",
"X-NITRO-PASS": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"X-NITRO-USER": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
},
"http_response_body": "{ \"errorcode\": 3094, \"message\": \"Policy name already in use [by a responder policy]\", \"severity\": \"ERROR\" }",
"http_response_data": {
"cache-control": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"connection": "close",
"content-length": "107",
"content-type": "application/json; charset=utf-8",
"date": "Tue, 07 Aug 2018 20:33:40 GMT",
"expires": "Thu, 19 Nov 1981 08:52:00 GMT",
"msg": "HTTP Error 409: Conflict",
"pragma": "no-cache",
"server": "Apache",
"status": 409,
"url": "https://10.3.252.1/nitro/v1/config/responderpolicy"
},
"invocation": {
"module_args": {
"action": null,
"args": null,
"attributes": {
"action": "res_act_1",
"name": "res_pol_1",
"rule": "(HTTP.REQ.URL.STARTSWITH(\"/1\"))"
},
"expected_nitro_errorcode": [
0
],
"filter": null,
"instance_id": null,
"instance_ip": null,
"instance_name": null,
"name": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"operation": "add",
"resource": "responderpolicy",
"validate_certs": false
}
},
"item": {
"action": "res_act_1",
"name": "res_pol_1",
"rule": "(HTTP.REQ.URL.STARTSWITH(\"/1\"))"
},
"msg": "NITRO Failure",
"nitro_errorcode": 3094,
"nitro_message": "Policy name already in use [by a responder policy]",
"nitro_severity": "ERROR"
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_nitro_request.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.48-178460821674796 `" && echo ansible-tmp-1533674026.48-178460821674796="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.48-178460821674796 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpDueRtD TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.48-178460821674796/netscaler_nitro_request.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.48-178460821674796/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.48-178460821674796/netscaler_nitro_request.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.48-178460821674796/netscaler_nitro_request.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.48-178460821674796/ > /dev/null 2>&1 && sleep 0'
failed: [nstest -> localhost] (item={u'action': u'res_act_2', u'name': u'res_pol_2', u'rule': u'(HTTP.REQ.URL.STARTSWITH("/2"))'}) => {
"changed": false,
"headers": {
"Content-Type": "application/json",
"X-NITRO-PASS": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"X-NITRO-USER": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
},
"http_response_body": "{ \"errorcode\": 3094, \"message\": \"Policy name already in use [by a responder policy]\", \"severity\": \"ERROR\" }",
"http_response_data": {
"cache-control": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"connection": "close",
"content-length": "107",
"content-type": "application/json; charset=utf-8",
"date": "Tue, 07 Aug 2018 20:33:41 GMT",
"expires": "Thu, 19 Nov 1981 08:52:00 GMT",
"msg": "HTTP Error 409: Conflict",
"pragma": "no-cache",
"server": "Apache",
"status": 409,
"url": "https://10.3.252.1/nitro/v1/config/responderpolicy"
},
"invocation": {
"module_args": {
"action": null,
"args": null,
"attributes": {
"action": "res_act_2",
"name": "res_pol_2",
"rule": "(HTTP.REQ.URL.STARTSWITH(\"/2\"))"
},
"expected_nitro_errorcode": [
0
],
"filter": null,
"instance_id": null,
"instance_ip": null,
"instance_name": null,
"name": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"operation": "add",
"resource": "responderpolicy",
"validate_certs": false
}
},
"item": {
"action": "res_act_2",
"name": "res_pol_2",
"rule": "(HTTP.REQ.URL.STARTSWITH(\"/2\"))"
},
"msg": "NITRO Failure",
"nitro_errorcode": 3094,
"nitro_message": "Policy name already in use [by a responder policy]",
"nitro_severity": "ERROR"
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_nitro_request.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.87-67375610844036 `" && echo ansible-tmp-1533674026.87-67375610844036="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.87-67375610844036 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpvf5aEW TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.87-67375610844036/netscaler_nitro_request.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.87-67375610844036/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.87-67375610844036/netscaler_nitro_request.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.87-67375610844036/netscaler_nitro_request.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674026.87-67375610844036/ > /dev/null 2>&1 && sleep 0'
failed: [nstest -> localhost] (item={u'action': u'res_act_3', u'name': u'res_pol_3', u'rule': u'(HTTP.REQ.URL.STARTSWITH("/3"))'}) => {
"changed": false,
"headers": {
"Content-Type": "application/json",
"X-NITRO-PASS": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"X-NITRO-USER": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
},
"http_response_body": "{ \"errorcode\": 3094, \"message\": \"Policy name already in use [by a responder policy]\", \"severity\": \"ERROR\" }",
"http_response_data": {
"cache-control": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"connection": "close",
"content-length": "107",
"content-type": "application/json; charset=utf-8",
"date": "Tue, 07 Aug 2018 20:33:41 GMT",
"expires": "Thu, 19 Nov 1981 08:52:00 GMT",
"msg": "HTTP Error 409: Conflict",
"pragma": "no-cache",
"server": "Apache",
"status": 409,
"url": "https://10.3.252.1/nitro/v1/config/responderpolicy"
},
"invocation": {
"module_args": {
"action": null,
"args": null,
"attributes": {
"action": "res_act_3",
"name": "res_pol_3",
"rule": "(HTTP.REQ.URL.STARTSWITH(\"/3\"))"
},
"expected_nitro_errorcode": [
0
],
"filter": null,
"instance_id": null,
"instance_ip": null,
"instance_name": null,
"name": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"operation": "add",
"resource": "responderpolicy",
"validate_certs": false
}
},
"item": {
"action": "res_act_3",
"name": "res_pol_3",
"rule": "(HTTP.REQ.URL.STARTSWITH(\"/3\"))"
},
"msg": "NITRO Failure",
"nitro_errorcode": 3094,
"nitro_message": "Policy name already in use [by a responder policy]",
"nitro_severity": "ERROR"
}
...ignoring
TASK [Create CS VServers] *****************************************************************************************************************************************************************************************
task path: /home/guests/Simon.Milhomme/SSQ/ns-ansible/pb_ns-put-cs-test.yml:118
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_cs_vserver.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: exp1x391
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674027.5-83643228149157 `" && echo ansible-tmp-1533674027.5-83643228149157="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674027.5-83643228149157 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpt_blNW TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674027.5-83643228149157/netscaler_cs_vserver.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674027.5-83643228149157/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674027.5-83643228149157/netscaler_cs_vserver.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674027.5-83643228149157/netscaler_cs_vserver.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674027.5-83643228149157/ > /dev/null 2>&1 && sleep 0'
failed: [nstest -> localhost] (item={u'ipv46': u'10.3.252.30', u'servicetype': u'HTTP', u'policybindings': [{u'priority': 20, u'policyname': u'cs_pol_apps_test-1', u'targetlbvserver': u'lb_vserver-test-1'}, {u'priority': 30, u'policyname': u'cs_pol_apps_test-2', u'targetlbvserver': u'lb_vserver-test-2'}, {u'priority': 40, u'policyname': u'cs_pol_apps_test-3', u'targetlbvserver': u'lb_vserver-test-3'}, {u'priority': 101, u'policyname': u'res_pol_1'}, {u'priority': 102, u'policyname': u'res_pol_2'}, {u'priority': 103, u'policyname': u'res_pol_3'}], u'name': u'cs_vserver-test-2', u'port': 80}) => {
"changed": false,
"invocation": {
"module_args": {
"appflowlog": null,
"authentication": null,
"authenticationhost": null,
"authn401": null,
"authnprofile": null,
"authnvsname": null,
"cacheable": null,
"casesensitive": null,
"clttimeout": null,
"comment": null,
"dbprofilename": null,
"disabled": false,
"disableprimaryondown": null,
"dnsprofilename": null,
"dnsrecordtype": null,
"downstateflush": null,
"httpprofilename": null,
"icmpvsrresponse": null,
"insertvserveripport": null,
"instance_ip": null,
"ipmask": null,
"ippattern": null,
"ipv46": "10.3.252.30",
"l2conn": null,
"lbvserver": null,
"listenpolicy": null,
"mas_proxy_call": false,
"mssqlserverversion": null,
"mysqlcharacterset": null,
"mysqlprotocolversion": null,
"mysqlservercapabilities": null,
"mysqlserverversion": null,
"name": "cs_vserver-test-2",
"netprofile": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"oracleserverversion": null,
"policybindings": [
{
"name": "cs_vserver-test-2",
"policyname": "cs_pol_apps_test-1",
"priority": 20,
"targetlbvserver": "lb_vserver-test-1"
},
{
"name": "cs_vserver-test-2",
"policyname": "cs_pol_apps_test-2",
"priority": 30,
"targetlbvserver": "lb_vserver-test-2"
},
{
"name": "cs_vserver-test-2",
"policyname": "cs_pol_apps_test-3",
"priority": 40,
"targetlbvserver": "lb_vserver-test-3"
},
{
"name": "cs_vserver-test-2",
"policyname": "res_pol_1",
"priority": 101
},
{
"name": "cs_vserver-test-2",
"policyname": "res_pol_2",
"priority": 102
},
{
"name": "cs_vserver-test-2",
"policyname": "res_pol_3",
"priority": 103
}
],
"port": 80,
"precedence": null,
"push": null,
"pushlabel": null,
"pushmulticlients": null,
"pushvserver": null,
"range": null,
"redirectportrewrite": null,
"redirecturl": null,
"rhistate": null,
"rtspnat": null,
"save_config": true,
"servicetype": "HTTP",
"sobackupaction": null,
"somethod": null,
"sopersistence": null,
"sopersistencetimeout": null,
"sothreshold": null,
"ssl_certkey": null,
"state": "present",
"stateupdate": null,
"tcpprofilename": null,
"td": null,
"validate_certs": false,
"vipheader": null
}
},
"item": {
"ipv46": "10.3.252.30",
"name": "cs_vserver-test-2",
"policybindings": [
{
"policyname": "cs_pol_apps_test-1",
"priority": 20,
"targetlbvserver": "lb_vserver-test-1"
},
{
"policyname": "cs_pol_apps_test-2",
"priority": 30,
"targetlbvserver": "lb_vserver-test-2"
},
{
"policyname": "cs_pol_apps_test-3",
"priority": 40,
"targetlbvserver": "lb_vserver-test-3"
},
{
"policyname": "res_pol_1",
"priority": 101
},
{
"policyname": "res_pol_2",
"priority": 102
},
{
"policyname": "res_pol_3",
"priority": 103
}
],
"port": 80,
"servicetype": "HTTP"
},
"msg": "Policy bindings differ"
}
Using module file /home/guests/Simon.Milhomme/ansible25/lib/python2.7/site-packages/ansible/modules/network/netscaler/netscaler_cs_vserver.py
<localhost> EXEC /bin/sh -c 'echo ~exp1x391 && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674030.96-29034655753561 `" && echo ansible-tmp-1533674030.96-29034655753561="` echo /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674030.96-29034655753561 `" ) && sleep 0'
<localhost> PUT /home/guests/Simon.Milhomme/.ansible/tmp/ansible-local-5280229gQsD/tmpHUc2zW TO /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674030.96-29034655753561/netscaler_cs_vserver.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674030.96-29034655753561/ /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674030.96-29034655753561/netscaler_cs_vserver.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/guests/Simon.Milhomme/ansible25/bin/python /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674030.96-29034655753561/netscaler_cs_vserver.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/guests/Simon.Milhomme/.ansible/tmp/ansible-tmp-1533674030.96-29034655753561/ > /dev/null 2>&1 && sleep 0'
failed: [nstest -> localhost] (item={u'ipv46': u'10.3.252.32', u'servicetype': u'HTTP', u'policybindings': [{u'priority': 101, u'policyname': u'res_pol_1'}, {u'priority': 102, u'policyname': u'res_pol_2'}, {u'priority': 103, u'policyname': u'res_pol_3'}], u'name': u'cs_vserver-test-2-new', u'port': 80}) => {
"changed": false,
"invocation": {
"module_args": {
"appflowlog": null,
"authentication": null,
"authenticationhost": null,
"authn401": null,
"authnprofile": null,
"authnvsname": null,
"cacheable": null,
"casesensitive": null,
"clttimeout": null,
"comment": null,
"dbprofilename": null,
"disabled": false,
"disableprimaryondown": null,
"dnsprofilename": null,
"dnsrecordtype": null,
"downstateflush": null,
"httpprofilename": null,
"icmpvsrresponse": null,
"insertvserveripport": null,
"instance_ip": null,
"ipmask": null,
"ippattern": null,
"ipv46": "10.3.252.32",
"l2conn": null,
"lbvserver": null,
"listenpolicy": null,
"mas_proxy_call": false,
"mssqlserverversion": null,
"mysqlcharacterset": null,
"mysqlprotocolversion": null,
"mysqlservercapabilities": null,
"mysqlserverversion": null,
"name": "cs_vserver-test-2-new",
"netprofile": null,
"nitro_auth_token": null,
"nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nitro_protocol": "https",
"nitro_timeout": 310.0,
"nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nsip": "10.3.252.1",
"oracleserverversion": null,
"policybindings": [
{
"name": "cs_vserver-test-2-new",
"policyname": "res_pol_1",
"priority": 101
},
{
"name": "cs_vserver-test-2-new",
"policyname": "res_pol_2",
"priority": 102
},
{
"name": "cs_vserver-test-2-new",
"policyname": "res_pol_3",
"priority": 103
}
],
"port": 80,
"precedence": null,
"push": null,
"pushlabel": null,
"pushmulticlients": null,
"pushvserver": null,
"range": null,
"redirectportrewrite": null,
"redirecturl": null,
"rhistate": null,
"rtspnat": null,
"save_config": true,
"servicetype": "HTTP",
"sobackupaction": null,
"somethod": null,
"sopersistence": null,
"sopersistencetimeout": null,
"sothreshold": null,
"ssl_certkey": null,
"state": "present",
"stateupdate": null,
"tcpprofilename": null,
"td": null,
"validate_certs": false,
"vipheader": null
}
},
"item": {
"ipv46": "10.3.252.32",
"name": "cs_vserver-test-2-new",
"policybindings": [
{
"policyname": "res_pol_1",
"priority": 101
},
{
"policyname": "res_pol_2",
"priority": 102
},
{
"policyname": "res_pol_3",
"priority": 103
}
],
"port": 80,
"servicetype": "HTTP"
},
"msg": "Policy bindings differ"
}
to retry, use: --limit @/home/guests/Simon.Milhomme/SSQ/ns-ansible/pb_ns-put-cs-test.retry
PLAY RECAP ********************************************************************************************************************************************************************************************************
nstest : ok=7 changed=0 unreachable=0 failed=1
from ansible-collection-netscaleradc.
The root cause of the error you are facing is that the policybindings
argument can be used only for binding cspolicy
bindings to the csvserver
. Not responderpolicy
bindings.
What makes the error more interesting is the fact that while the NITRO object for cspolicy
bindings succeeds in implementing the responderpolicy
binding it cannot subsequently get the list of responderbindings
. The end result is that when the module does the sanity checks to see if the configuration was applied correctly it fails.
The fix for this would be to add logic to the module to implement responderpolicy
bindings properly. We will note this and include this fix when we revisit the csvserver
module.
Currently as a work around I suggest you use the citrix_adc_nitro_request
module to implement the responderpolicy bindings.
The following sample contains this logic.
- hosts: citrix_adc
gather_facts: False
vars:
responderaction:
name: res_act_1
target: '"HTTP/1.1 301 MOVED PERMANENTLY\r\n" + "Location: http://" + http.req.hostname.HTTP_URL_SAFE + "/test_1" + "\r\nConnection: close\r\n\r\n"'
type: respondwith
res_policy:
name: res_pol_1
rule: '(HTTP.REQ.URL.STARTSWITH("/1"))'
action: res_act_1
cs_vserver:
name: cs_vserver-test-2
ipv46: 10.3.252.32
port: 80
servicetype: HTTP
policybindings:
- policyname: res_pol_1
priority: 101
responderpolicy_binding:
name: cs_vserver-test-2
policyname: res_pol_1
priority: 101
tasks:
- name: Add Responder Action
delegate_to: localhost
ignore_errors: true
citrix_adc_nitro_request:
nitro_protocol: https
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
validate_certs: "{{ validate_certs }}"
operation: add
resource: responderaction
attributes: "{{ responderaction }}"
- name: Add Responder Policy
ignore_errors: true
delegate_to: localhost
citrix_adc_nitro_request:
validate_certs: false
nitro_protocol: https
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
operation: add
resource: responderpolicy
attributes: "{{ res_policy }}"
- name: Create CS VServers
delegate_to: localhost
citrix_adc_cs_vserver:
validate_certs: false
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
state: present
name: "{{ cs_vserver.name }}"
servicetype: "{{ cs_vserver.servicetype }}"
ipv46: "{{ cs_vserver.ipv46 }}"
port: "{{ cs_vserver.port }}"
- name: Add Responder Policy
ignore_errors: true
delegate_to: localhost
citrix_adc_nitro_request:
validate_certs: false
nitro_protocol: https
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
operation: add
resource: csvserver_responderpolicy_binding
attributes: "{{ responderpolicy_binding }}"
from ansible-collection-netscaleradc.
Related Issues (20)
- [Bug]: can't delete servicegoup (2.1.0) HOT 3
- [FEATURE REQUEST]: restoring default values HOT 2
- [Bug]: dnsproxyrecords supports no state HOT 2
- [Bug]: unset netprofile gap? 2.3.0 HOT 1
- [Bug]: netscaler.adc.policypatset: policypatset_pattern_binding: binding_members returning "KeyError: string" error HOT 5
- [FEATURE-REQUEST]: `unset`ting of a param in `state:present` HOT 4
- [Bug]: Cipher Group recreating even if exists HOT 1
- [Help]: SSLCertKey link doesn't work with the new version HOT 1
- [Bug]: ERROR: Primary key `name` is missing for the resource `lbvserver_servicegroup_binding HOT 9
- [Bug]: systemglobal_authenticationtacacspolicy_binding module idempotency issue HOT 5
- [FEATURE REQUEST]: update tests to include ansible-2.14 and ansible-2.16
- [Bug]: hasync module missing state values
- [FEATURE REQUEST]: Update `requires_ansible` to 2.15 before May as Ansible Automation Platform 2.3 will reach its EoL
- [FEATURE REQUEST]: Support for GET, GET (All) and GET filtered operations on resources HOT 6
- [FEATURE REQUEST]: Do not fail on non-updatable module attributes HOT 6
- [FEATURE REQUEST]: Add resource dependency list to the nitro resource dependency map module util HOT 4
- [Bug]: servicegroup_servicegroupmember_binding inside of netscaler.adc.servicegroup module won't let me add binding members, only remove HOT 4
- [Bug]: gslbservice module breaks idempotency due to "ip" parameter not handled correctly HOT 1
- [Bug]: `responderglobal_responderpolicy_binding` not idempotent and unable to delete HOT 1
- [Bug]: netscaler.adc.lbvserver_service_binding is not idempotent HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-collection-netscaleradc.