# Unable to run sh run playbook on cisco\_csr

**URL:** <https://forum.ansible.com/t/unable-to-run-sh-run-playbook-on-cisco-csr/3945>\
**Category:** Get Help\
**Tags:** playbook\
**Created:** [February 19, 2024, 10:36am UTC](https://forum.ansible.com/t/unable-to-run-sh-run-playbook-on-cisco-csr/3945 "2024-02-19T10:36:40Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![chinmasw](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@chinmasw](https://forum.ansible.com/u/chinmasw)\
**Post date:** [February 19, 2024, 11:48pm UTC](https://forum.ansible.com/t/unable-to-run-sh-run-playbook-on-cisco-csr/3945/7 "2024-02-19T23:48:38Z")

</div>

> [@akira6592](#):
>
> ```auto
> - name: Save output to ~/ansible/backups
> copy:
> content: "{{ config.stdout[0] }}"
> dest: "~/ansible/backups/{{ hostvars.cisco_csr.DTG }}/show_running-config.txt"
> 
> ```

Your Awesome it works. As a extension to the playbook, I am adding some of the show commands output. l guess I need to use some template like j2 for storing multiple sh commands output as the .txt you can only save 1 show command output. Is there a way out of not using j2?

---

_[View the full topic](https://forum.ansible.com/t/unable-to-run-sh-run-playbook-on-cisco-csr/3945)._
