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