not able to find output of shell command

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

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

  • debug: var=mymotd