---
- hosts: localhost
  gather_facts: no

  tasks:
    - name: grep aufrufen
      command: grep toor /etc/passwd
      register: output
      ignore_errors: true

    - name: Rückgabe ausgeben
      debug: var=output