Mac_Kam
(Mac Kam)
1
HI friends,
When I use raw command in out remote router, then cannot show the output.
my ansible version:2.7.5
yaml:
- hosts: SSR
gather_facts: no
remote_user: user
tasks:
- name: run
raw: “show port”
register: result
-name: Print output
debug:
msg: “{{result.stdout}}”
result:
attached the screen capture.
vbotka
(Vladimir Botka)
2
You can show the output. But the output is empty.
"stdout_lines":
The command was silently ignored
"rc": 0
"stderr": "Shared connection to ... closed."
Ansible can't help you. Probably the router's doc could.
Cheers,
-vlado
Mac_Kam
(Mac Kam)
3
Vladimir Botka於 2019年8月30日星期五 UTC+8下午2時15分52秒寫道: