mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Legacy variable usage removed
This commit is contained in:
parent
c931675520
commit
131c8489d4
1 changed files with 3 additions and 12 deletions
|
@ -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 }} 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}"
|
||||
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
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue