Hi Serge,
I tried the following:-
[root@localhost ~]# ansible localhost -m netscaler -a
"nsc_host=10.102.56.141 user=nsroot password=nsroot" -vvv
Using /etc/ansible/ansible.cfg as config file
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo
/tmp/ansible/$USER/ansible-tmp-1481150804.2-134977495866272 `" && echo
ansible-tmp-1481150804.2-134977495866272="` echo
/tmp/ansible/$USER/ansible-tmp-1481150804.2-134977495866272 `" ) && sleep 0'
<127.0.0.1> PUT /tmp/tmp8MRvit TO
/tmp/ansible/root/ansible-tmp-1481150804.2-134977495866272/netscaler
<127.0.0.1> EXEC /bin/sh -c 'LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python
/tmp/ansible/root/ansible-tmp-1481150804.2-134977495866272/netscaler; rm
-rf "/tmp/ansible/root/ansible-tmp-1481150804.2-134977495866272/" >
/dev/null 2>&1 && sleep 0'
localhost | FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"action": "enable",
"name": "localhost.localdomain",
"nsc_host": "10.102.56.141",
"nsc_protocol": "https",
"password": "nsroot",
"type": "server",
"user": "nsroot",
"validate_certs": true
},
"module_name": "netscaler"
},
"msg": "Failed to validate the SSL certificate for 10.102.56.141:443.
Make sure your managed systems have a valid CA certificate installed. If
the website serving the url uses SNI you need python >= 2.7.9 on your
managed machine or you can install the `urllib3`, `pyopenssl`,
`ndg-httpsclient`, and `pyasn1` python modules to perform SNI verification
in python >= 2.6. You can use validate_certs=False if you do not need to
confirm the servers identity but this is unsafe and not recommended. Paths
checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem,
/etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible"
}
Do we need to install python on the netscaler ? no permission for that
though.
On Wednesday, December 7, 2016 at 2:21:03 PM UTC+5:30, Serge van
Ginderachter wrote:
>
>
> On 2 December 2016 at 10:18, Chitrangda Kapoor <[email protected]
> <javascript:>> wrote:
> > "[root@localhost roles]# ansible host -m netscaler -a
> > "nsc_host=10.102.56.141 user=nsroot password=nsroot" -vvv
> > Using /etc/ansible/ansible.cfg as config file
> > ERROR! Specified hosts and/or --limit does not match any hosts"
>
> Can you try
>
> ansible *localhost* -m netscaler -a "nsc_host=10.102.56.141 user=nsroot
> password=nsroot" -vvv
>
>
> Serge
>
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.