# not able to find output of shell command

**URL:** <https://forum.ansible.com/t/not-able-to-find-output-of-shell-command/25128>\
**Category:** Ansible Project\
**Created:** [July 29, 2017, 7:26pm UTC](https://forum.ansible.com/t/not-able-to-find-output-of-shell-command/25128 "2017-07-29T19:26:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Modak](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sameer_modak/32/5180_2.png) [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Post date:** [July 29, 2017, 7:26pm UTC](https://forum.ansible.com/t/not-able-to-find-output-of-shell-command/25128/1 "2017-07-29T19:26:16Z")

</div>

This is my yml file which is working fine for zypper commands but unable to see output for /etc/motd file. How to see the output

[smodak@hel-shell-2 ~]$ vi roles/basic/tasks/main.yml

- name: “Installing VIM”  
zypper: name=vim state=present

- name: “Installing chindi soft”  
zypper: name=vim state=present

- name: return motd to registered var  
command: cat /etc/motd  
register: mymotd

---

<div class="post-metadata">

**Author:** ![Daniel\_JD](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@Daniel\_JD](https://forum.ansible.com/u/Daniel_JD)\
**Post date:** [July 29, 2017, 9:06pm UTC](https://forum.ansible.com/t/not-able-to-find-output-of-shell-command/25128/2 "2017-07-29T21:06:24Z")

</div>

Well, the output is saved to the variable. You have to display it if you want to see it 😃

- debug: var=mymotd
