mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Added "debug: var=variableName" capability.
This commit is contained in:
parent
84ff24d92c
commit
e131de4de0
5 changed files with 44 additions and 13 deletions
|
@ -35,7 +35,10 @@ options:
|
|||
message.
|
||||
required: false
|
||||
default: "Hello world!"
|
||||
author: Dag Wieers
|
||||
var:
|
||||
description:
|
||||
- A variable name to debug. Mutually exclusive with the 'msg' option.
|
||||
author: Dag Wieers, Michael DeHaan
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
|
@ -44,4 +47,9 @@ EXAMPLES = '''
|
|||
|
||||
- debug: msg="System {{ inventory_hostname }} has gateway {{ ansible_default_ipv4.gateway }}"
|
||||
when: ansible_default_ipv4.gateway is defined
|
||||
|
||||
- shell: /usr/bin/uptime
|
||||
register: result
|
||||
- debug: var=result
|
||||
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue