From 7cf87d7a3c469ac0c01f7652ba3de3d27c3fe0be Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 19 Jul 2013 09:40:00 -0400 Subject: [PATCH] Legacy variable usage removed --- utilities/debug | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/utilities/debug b/utilities/debug index 12e930c7e31..e2acb08d07a 100644 --- a/utilities/debug +++ b/utilities/debug @@ -37,22 +37,13 @@ options: message. required: false default: "Hello world!" - fail: - description: - - A boolean that indicates whether the debug module should fail or not. - required: false - default: "no" - choices: [ "yes", "no" ] author: Dag Wieers ''' EXAMPLES = ''' # Example that prints the loopback address and gateway for each host -- debug: msg="System $inventory_hostname has uuid $ansible_product_uuid" - -- debug: msg="System $inventory_hostname lacks a gateway" fail=yes - only_if: "is_unset('${ansible_default_ipv4.gateway}')" +- debug: msg="System {{ inventory_hostname }} has uuid {{ ansible_product_uuid }}" -- debug: msg="System $inventory_hostname has gateway ${ansible_default_ipv4.gateway}" - only_if: "is_set('${ansible_default_ipv4.gateway}')" +- debug: msg="System {{ inventory_hostname }} has gateway {{ ansible_default_ipv4.gateway }}" + when: ansible_default_ipv4.gateway is defined '''