online help: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/shell_module.html offline help: ansible-doc shell
## PLAYBOOK
shell1.yml
--- - name: ansible shell module - example 1 hosts: all become: True tasks: - name: Show uptime shell: uptime register: results1 - debug: msg="{{ results1.stdout_lines }}"
## OUTPUT