# Test-Playbook: Pruefen ob alle Rechner erreichbar sind --- - name: Ping alle Laptops hosts: schul_laptops gather_facts: no tasks: - name: Ping ping: - name: Zeige Hostname command: hostname register: result changed_when: false - name: Ausgabe debug: msg: "{{ inventory_hostname }} antwortet als {{ result.stdout }}"