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
0a574af2
Commit
0a574af2
authored
Apr 03, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5555 from sivel/expose-playbook-to-callback
Expose the playbook to callback plugins
parents
1fa19e29
f99500d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
lib/ansible/callbacks.py
+6
-0
lib/ansible/playbook/__init__.py
+1
-0
No files found.
lib/ansible/callbacks.py
View file @
0a574af2
...
...
@@ -115,6 +115,12 @@ def log_unflock(runner):
except
OSError
:
pass
def
set_playbook
(
callback
,
playbook
):
''' used to notify callback plugins of playbook context '''
callback
.
playbook
=
playbook
for
callback_plugin
in
callback_plugins
:
callback_plugin
.
playbook
=
playbook
def
set_play
(
callback
,
play
):
''' used to notify callback plugins of context '''
callback
.
play
=
play
...
...
lib/ansible/playbook/__init__.py
View file @
0a574af2
...
...
@@ -175,6 +175,7 @@ class PlayBook(object):
self
.
filename
=
playbook
(
self
.
playbook
,
self
.
play_basedirs
)
=
self
.
_load_playbook_from_file
(
playbook
,
vars
)
ansible
.
callbacks
.
load_callback_plugins
()
ansible
.
callbacks
.
set_playbook
(
self
.
callbacks
,
self
)
# *****************************************************
...
...
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