--- - name: sample register play hosts: server become: false tasks: - name: "Get OS version string" shell: cal register: shellout - name: "output shellout" debug: var: shellout['stdout'] - debug: var: shellout