Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
131c8489
Commit
131c8489
authored
Jul 19, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Legacy variable usage removed
parent
c9316755
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
library/utilities/debug
+3
-12
No files found.
library/utilities/debug
View file @
131c8489
...
@@ -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
'''
'''
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment