This repository is being archived. See https://github.com/ansible-community/presentations and https://github.com/ansible-community/meetings for the new locations
Apache License 2.0
489
stars
144
forks
source link
Ansible multiple command output to a single file. #617
Hi This is tge script that i am running, i need to capture all 3 command in the commands section
in one single hostname file, instead of 3 different file, currently this is only saving outout of the 2nd command and if i chnage tghe print_output.stdout to 0 it will print the 1st command but it will not write the output of all command to a single file,
Pls advise.
This repository is for management of all Ansible community related initiatives, such as meetings.
Ansible Support
Hi This is tge script that i am running, i need to capture all 3 command in the commands section in one single hostname file, instead of 3 different file, currently this is only saving outout of the 2nd command and if i chnage tghe print_output.stdout to 0 it will print the 1st command but it will not write the output of all command to a single file, Pls advise.
name: Name servers
ios_command: authorize: yes provider: "{{ cli }}" commands:
show logging | in host
register: print_output