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
8e71b262
Commit
8e71b262
authored
Sep 25, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up 'changed' playbook output patch
parent
3270c097
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/ansible/callbacks.py
+3
-3
No files found.
lib/ansible/callbacks.py
View file @
8e71b262
...
...
@@ -310,7 +310,7 @@ class PlaybookRunnerCallbacks(DefaultRunnerCallbacks):
host_result2
=
host_result
.
copy
()
host_result2
.
pop
(
'invocation'
,
None
)
changed
=
'changed'
in
host_result2
or
host_result
[
'changed'
]
changed
=
host_result
.
get
(
'changed'
,
False
)
ok_or_changed
=
'ok'
if
changed
:
ok_or_changed
=
'changed'
...
...
@@ -319,7 +319,7 @@ class PlaybookRunnerCallbacks(DefaultRunnerCallbacks):
msg
=
''
if
not
self
.
verbose
or
host_result2
.
get
(
"verbose_override"
,
None
)
is
not
None
:
if
item
:
msg
=
"
ok: [
%
s] => (item=
%
s)"
%
(
host
,
item
)
msg
=
"
%
s: [
%
s] => (item=
%
s)"
%
(
ok_or_changed
,
host
,
item
)
else
:
if
'ansible_job_id'
not
in
host_result
or
'finished'
in
host_result
:
msg
=
"
%
s: [
%
s]"
%
(
ok_or_changed
,
host
)
...
...
@@ -329,7 +329,7 @@ class PlaybookRunnerCallbacks(DefaultRunnerCallbacks):
msg
=
"
%
s: [
%
s] => (item=
%
s) =>
%
s"
%
(
ok_or_changed
,
host
,
item
,
utils
.
jsonify
(
host_result2
))
else
:
if
'ansible_job_id'
not
in
host_result
or
'finished'
in
host_result2
:
msg
=
"
%
s: [
%
s] =>
%
s"
%
(
host
,
utils
.
jsonify
(
host_result2
))
msg
=
"
%
s: [
%
s] =>
%
s"
%
(
ok_or_changed
,
host
,
utils
.
jsonify
(
host_result2
))
if
msg
!=
''
:
if
not
changed
:
...
...
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