From 3abba6907e842c007594c0a0f5fe97a512463600 Mon Sep 17 00:00:00 2001 From: Patrick Niebeling Date: Tue, 25 Nov 2025 23:24:54 +0100 Subject: [PATCH] Extend Output --- minimal-debug.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/minimal-debug.yml b/minimal-debug.yml index bcde1a1..a81566a 100644 --- a/minimal-debug.yml +++ b/minimal-debug.yml @@ -4,6 +4,18 @@ gather_facts: false tasks: - - name: Print debug message - debug: - msg: "Hallo, dies ist eine Debug-Nachricht von Ansible!" \ No newline at end of file + - name: Zeige Hostnamen + ansible.builtin.shell: hostname + register: hostname_output + + - name: Ausgabe des Hostnamens + ansible.builtin.debug: + msg: "Hostname: {{ hostname_output.stdout }}" + + - name: Zeige Routing-Tabelle + ansible.builtin.shell: ip ro + register: ipro_output + + - name: Ausgabe der Routing-Tabelle + ansible.builtin.debug: + msg: "{{ ipro_output.stdout_lines }}" \ No newline at end of file