--- - hosts: localhost gather_facts: no tasks: - name: grep aufrufen command: grep root /etc/passwd register: output - name: Rückgabe ausgeben debug: var=output