From a19fbc7b24f73203c72e17a31cbbac2a65474e3b 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. --- utilities/debug | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utilities/debug b/utilities/debug index 629b3d85006..2df68ca0830 100644 --- a/utilities/debug +++ b/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] '''