commit | author | age | ||
97d9af | 1 | --- |
SU | 2 | - name: sample register play |
3 | hosts: server | |
4 | become: false | |
5 | tasks: | |
6 | - name: "Get OS version string" | |
7 | shell: cal | |
8 | register: shellout | |
9 | - name: "output shellout" | |
10 | debug: | |
11 | var: shellout['stdout'] | |
12 | - debug: | |
13 | var: shellout |