Ansible newbie here.  I'm trying to learn about network_cli so installed a 
recent version of ansible
 ansible --version
ansible 2.7.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = 
[u'/home/ubuntu/.ansible/plugins/modules', 
u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0]

It appears the first task/commands executes ok, but as soon as I add a 
second task in the playbook (even a debug task) I end up with the error:
TASK [sros_command] 
****************************************************************************************
task path: /tmp/sros.yml:7
The full traceback is:
Traceback (most recent call last):
  File "/usr/bin/ansible-connection", line 290, in main
    messages.extend(conn.update_play_context(pc_data))
  File 
"/usr/lib/python2.7/dist-packages/ansible/module_utils/connection.py", line 
173, in __rpc__
    raise ConnectionError(to_text(msg, errors='surrogate_then_replace'), 
code=code)
ConnectionError: 'Connection' object has no attribute 'reset_history'

fatal: [sr]: FAILED! => {
    "msg": "'Connection' object has no attribute 'reset_history'"
}

Even trying to revert back to using 'provider' and 'connection: local' 
fails with a similar error.

Thanks,
DC

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/388e13db-d1b8-4e54-bf0f-2d917e640503%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to