Commit 131c8489 by Michael DeHaan

Legacy variable usage removed

parent c9316755
...@@ -37,22 +37,13 @@ options: ...@@ -37,22 +37,13 @@ options:
message. message.
required: false required: false
default: "Hello world!" 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 author: Dag Wieers
''' '''
EXAMPLES = ''' EXAMPLES = '''
# Example that prints the loopback address and gateway for each host # 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 }} 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 gateway ${ansible_default_ipv4.gateway}" - debug: msg="System {{ inventory_hostname }} has gateway {{ ansible_default_ipv4.gateway }}"
only_if: "is_set('${ansible_default_ipv4.gateway}')" when: ansible_default_ipv4.gateway is defined
''' '''
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment