Hi All,
Im just new to ansible and tested few successful samples on IOS and IOSXR, but im having an error for huawei.
I just want to display the current config and copy to a file but ive encounted below errors.
root@ansible-srv01:/etc/ansible/roles/playbook# ansible --version
ansible 2.3.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2]
root@ansible-srv01:/etc/ansible/roles/playbook# ansible-playbook huawei.yaml
PLAY [Huawei Test] *************************************************************************************************************************************************************************************************************************
TASK [run display current] *****************************************************************************************************************************************************************************************************************
fatal: [huawei1]: FAILED! => {“changed”: false, “failed”: true, “module_stderr”: “/usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py:141: FutureWarning: CTR mode needs counter parameter, not IV\n self._cipher = factory.new(key, *args, **kwargs)\nTraceback (most recent call last):\n File "/tmp/ansible_GkkQf3/ansible_module_ce_command.py", line 269, in \n main()\n File "/tmp/ansible_GkkQf3/ansible_module_ce_command.py", line 204, in main\n supports_check_mode=True)\n File "/tmp/ansible_GkkQf3/ansible_modlib.zip/ansible/module_utils/network.py", line 134, in init\n File "/tmp/ansible_GkkQf3/ansible_modlib.zip/ansible/module_utils/network.py", line 170, in connect\n File "/tmp/ansible_GkkQf3/ansible_modlib.zip/ansible/module_utils/cloudengine.py", line 221, in connect\n File "/tmp/ansible_GkkQf3/ansible_modlib.zip/ansible/module_utils/shell.py", line 157, in send\nTypeError: string indices must be integers, not str\n”, “module_stdout”: “”, “msg”: “MODULE FAILURE”, “rc”: 0}
to retry, use: --limit @/etc/ansible/roles/playbook/huawei.retry
PLAY RECAP *********************************************************************************************************************************************************************************************************************************
huawei1 : ok=0 changed=0 unreachable=0 failed=1
root@ansible-srv01:/etc/ansible/roles/playbook#
tia.
jeff