--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c11d6f3a-c468-4c41-a097-bdd511cf0cf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I might be mistaken, but when dealing with network devices there should be something like:
connection: local
somewhere at the beginning of the playbook.
And the content of the playbook itself would be helpful here I think.
Please also check:
https://www.ansible.com/webinars-training/ansible-playbooks-using-network-modules
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ansible-proje...@googlegroups.com.
To post to this group, send email to
ansible...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/c11d6f3a-c468-4c41-a097-bdd511cf0cf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ING Services Polska Sp. z o. o. ul. Konduktorska 35, 40-155 Katowice, NIP 634-251-05-98, KRS 0000183258 Sąd Rejonowy w Katowicach, Wydział VIII Gospodarczy Krajowego Rejestru Sądowego, Kapitał zakładowy - 13 950 000,00 zł wpłacony w całości.
[ playbooks]# ssh -s -p 830 ansible@juniper_12 netconfWelcome to Juniper ex4300-48tPassword:<!-- No zombies were killed during the creation of this user interface --><!-- user ansible, class j-read-only --><hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><capabilities><capability>urn:ietf:params:netconf:base:1.0</capability><capability>urn:ietf:params:netconf:capability:candidate:1.0</capability><capability>urn:ietf:params:netconf:capability:confirmed-commit:1.0</capability><capability>urn:ietf:params:netconf:capability:validate:1.0</capability><capability>urn:ietf:params:netconf:capability:url:1.0?scheme=http,ftp,file</capability><capability>urn:ietf:params:xml:ns:netconf:base:1.0</capability><capability>urn:ietf:params:xml:ns:netconf:capability:candidate:1.0</capability><capability>urn:ietf:params:xml:ns:netconf:capability:confirmed-commit:1.0</capability><capability>urn:ietf:params:xml:ns:netconf:capability:validate:1.0</capability><capability>urn:ietf:params:xml:ns:netconf:capability:url:1.0?protocol=http,ftp,file</capability><capability>http://xml.juniper.net/netconf/junos/1.0</capability><capability>http://xml.juniper.net/dmi/system/1.0</capability></capabilities><session-id>11528</session-id></hello>]]>]]>
2018-02-09 01:13:25,964 p=17223 u=root | creating new control socket for host 192.168.89.240:830 as user ansible2018-02-09 01:13:25,965 p=17223 u=root | control socket path is /root/.ansible/pc/1007ccc67b2018-02-09 01:13:25,965 p=17223 u=root | current working directory is /etc/ansible/playbooks2018-02-09 01:13:25,966 p=17223 u=root | using connection plugin netconf2018-02-09 01:13:25,968 p=17223 u=root | failed to create control socket for host 192.168.89.2402018-02-09 01:13:25,969 p=17223 u=root | Traceback (most recent call last):File "/opt/ansible/bin/ansible-connection", line 298, in mainserver = Server(sf_path, pc)File "/opt/ansible/bin/ansible-connection", line 134, in __init__self.conn = connection_loader.get(play_context.connection, play_context, sys.stdin)File "/opt/ansible/lib/ansible/plugins/__init__.py", line 358, in getself._module_cache[path] = self._load_module_source(name, path)File "/opt/ansible/lib/ansible/plugins/__init__.py", line 343, in _load_module_sourcemodule = imp.load_source(full_name, path, module_file)File "/opt/ansible/lib/ansible/plugins/connection/netconf.py", line 39, in <module>raise AnsibleError("ncclient is not installed")AnsibleError: ncclient is not installed