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
0d11f53e
Commit
0d11f53e
authored
Mar 25, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let the callbacks see the playbook and (current) runner objects.
parent
b0a64973
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
lib/ansible/playbook/__init__.py
+3
-0
lib/ansible/runner/__init__.py
+2
-0
No files found.
lib/ansible/playbook/__init__.py
View file @
0d11f53e
...
...
@@ -114,6 +114,9 @@ class PlayBook(object):
self
.
private_key_file
=
private_key_file
self
.
only_tags
=
only_tags
self
.
callbacks
.
playbook
=
self
self
.
runner_callbacks
.
playbook
=
self
if
inventory
is
None
:
self
.
inventory
=
ansible
.
inventory
.
Inventory
(
host_list
)
self
.
inventory
.
subset
(
subset
)
...
...
lib/ansible/runner/__init__.py
View file @
0d11f53e
...
...
@@ -157,6 +157,8 @@ class Runner(object):
self
.
environment
=
environment
self
.
complex_args
=
complex_args
self
.
callbacks
.
runner
=
self
# misc housekeeping
if
subset
and
self
.
inventory
.
_subset
is
None
:
# don't override subset when passed from playbook
...
...
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