1 2 3 4 5 6 7
--- - hosts: all tasks: - name: send root mail command: cmd: mail -s "ansible test {{ inventory_hostname }}" root stdin: test