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
706cfd9a
Commit
706cfd9a
authored
Jul 15, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc cleanup -- moved function out of utils, removed debug statement.
parent
19a2fc00
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
lib/ansible/callbacks.py
+4
-1
lib/ansible/playbook/play.py
+0
-1
lib/ansible/utils.py
+0
-7
No files found.
lib/ansible/callbacks.py
View file @
706cfd9a
...
...
@@ -239,7 +239,10 @@ class PlaybookCallbacks(object):
pass
def
on_task_start
(
self
,
name
,
is_conditional
):
print
banner
(
utils
.
task_start_msg
(
name
,
is_conditional
))
msg
=
"TASK: [
%
s]"
%
name
if
is_conditional
:
msg
=
"NOTIFIED: [
%
s]"
%
name
print
banner
(
msg
)
def
on_vars_prompt
(
self
,
varname
,
private
=
True
):
msg
=
'input for
%
s: '
%
varname
...
...
lib/ansible/playbook/play.py
View file @
706cfd9a
...
...
@@ -64,7 +64,6 @@ class Play(object):
self
.
transport
=
ds
.
get
(
'connection'
,
self
.
playbook
.
transport
)
self
.
tags
=
ds
.
get
(
'tags'
,
None
)
self
.
gather_facts
=
ds
.
get
(
'gather_facts'
,
True
)
print
"self.gather_facts:
%
s"
%
self
.
gather_facts
self
.
_update_vars_files_for_host
(
None
)
...
...
lib/ansible/utils.py
View file @
706cfd9a
...
...
@@ -63,13 +63,6 @@ def smjson(result):
result2
=
result
.
copy
()
return
json
.
dumps
(
result2
,
sort_keys
=
True
)
def
task_start_msg
(
name
,
conditional
):
# FIXME: move to callbacks code
if
conditional
:
return
"NOTIFIED: [
%
s]"
%
name
else
:
return
"TASK: [
%
s]"
%
name
def
regular_generic_msg
(
hostname
,
result
,
oneline
,
caption
):
''' output on the result of a module run that is not command '''
if
not
oneline
:
...
...
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