Skip to content

Ansible 2.7.5 Aireos cannot connect cisco WLC #1

@yangcaixing

Description

@yangcaixing

Hi Roger,
I use the aireos module to connect cisco wlc, but it always be failed, my ansible version is 2.7.5, so would you pls help to check my issue. thanks in advance.
T4F-MBP-18317:rogerperkin yangcaixing$ ansible-playbook ap.yml -i wlc-inventory -vvv
ansible-playbook 2.7.5
config file = /etc/ansible/ansible.cfg
configured module search path = ['/Users/yangcaixing/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ansible
executable location = /Library/Frameworks/Python.framework/Versions/3.6/bin/ansible-playbook
python version = 3.6.3 (v3.6.3:2c5fed86e0, Oct 3 2017, 00:32:08) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
Using /etc/ansible/ansible.cfg as config file
/Users/yangcaixing/Desktop/ansible/rogerperkin/wlc-inventory did not meet host_list requirements, check plugin documentation if
this is unexpected
/Users/yangcaixing/Desktop/ansible/rogerperkin/wlc-inventory did not meet script requirements, check plugin documentation if thi
s is unexpected
Parsed /Users/yangcaixing/Desktop/ansible/rogerperkin/wlc-inventory inventory source with ini plugin

PLAYBOOK: ap.yml *************************************************************************************************************
1 plays in ap.yml

PLAY [WLC] *******************************************************************************************************************
META: ran handlers

TASK [Test Show Command] *****************************************************************************************************
task path: /Users/yangcaixing/Desktop/ansible/rogerperkin/ap.yml:6
<172.20.0.51> using connection plugin network_cli (was local)
The full traceback is:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ansible/plugins/terminal/aireos.py", line 54, in on_open_shell
self._exec_cli_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ansible/plugins/terminal/init.py", line 73, in _exec_cli_command
return self._connection.exec_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ansible/plugins/connection/network_cli.py", line 254, in exec_command
return self.send(**kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ansible/plugins/connection/network_cli.py", line 447, in send
response = self.receive(command, prompt, answer, newline, prompt_retry_check, check_all)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ansible/plugins/connection/network_cli.py", line 424, in receive
if self._find_prompt(window):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ansible/plugins/connection/network_cli.py", line 551, in _find_prompt
raise AnsibleConnectionFailure(errored_response)
ansible.errors.AnsibleConnectionFailure: tapadmin

Incorrect usage. Use the '?' or key to list commands.

(Cisco Controller) >

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/bin/ansible-connection", line 106, in start
self.connection._connect()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ansible/plugins/connection/network_cli.py", line 334, in _connect
self._terminal.on_open_shell()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ansible/plugins/terminal/aireos.py", line 56, in on_open_shell
raise AnsibleConnectionFailure('unable to set terminal parameters')
ansible.errors.AnsibleConnectionFailure: unable to set terminal parameters

fatal: [WLC-1]: FAILED! => {
"msg": "unable to set terminal parameters"
}
to retry, use: --limit @/Users/yangcaixing/Desktop/ansible/rogerperkin/ap.retry

PLAY RECAP *******************************************************************************************************************
WLC-1 : ok=0 changed=0 unreachable=0 failed=1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions