From 3c15d646556128ce2ef08fb3fb7f4b7bed2422e9 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Mon, 21 Apr 2014 11:40:53 +0200 Subject: [PATCH] Add an example to show all hostvars using debug This is a useful example to help debug how facts and vars are being collated. --- library/utilities/debug | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/utilities/debug b/library/utilities/debug index 629b3d8500..2df68ca083 100644 --- a/library/utilities/debug +++ b/library/utilities/debug @@ -50,6 +50,9 @@ EXAMPLES = ''' - shell: /usr/bin/uptime register: result + - debug: var=result +- name: Display all variables/facts known for a host + debug: var=hostvars[inventory_hostname] '''