for sure. so you start off by running that command and saving the output to a register. - name: run snmp command ios_command: line: show snmp engineid register: result the stdout and stdout_lines return values are common return values, an...
try using this instead: copy: content="{{ output.stdout[0] }}" dest=./output/{{ inventory_hostname }}.txt
I've been having inconsistent issues where it won't get all the paged output, but this has worked for me so far.