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
b6056044
Commit
b6056044
authored
Mar 06, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partial revert of
73c883c1
due to issues with handlers in roles
Fixes #6322
parent
e486dbab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
11 deletions
+3
-11
CHANGELOG.md
+0
-1
lib/ansible/playbook/__init__.py
+1
-8
lib/ansible/playbook/play.py
+2
-2
No files found.
CHANGELOG.md
View file @
b6056044
...
...
@@ -6,7 +6,6 @@ Ansible Changes By Release
Major features/changes:
*
The deprecated legacy variable templating system has been finally removed. Use {{ foo }} always not $foo or ${foo}.
*
Role dependencies are now tracked across multiple plays, making common roles easier to include in dependencies without any special variable tricks.
*
Any data file can also be JSON. Use sparingly -- with great power comes great responsibility. Starting file with "{" or "
[
" denotes JSON.
New Modules:
...
...
lib/ansible/playbook/__init__.py
View file @
b6056044
...
...
@@ -240,20 +240,13 @@ class PlayBook(object):
plays
=
[]
matched_tags_all
=
set
()
unmatched_tags_all
=
set
()
included_roles
=
[]
# loop through all patterns and run them
self
.
callbacks
.
on_start
()
for
(
play_ds
,
play_basedir
)
in
zip
(
self
.
playbook
,
self
.
play_basedirs
):
play
=
Play
(
self
,
play_ds
,
play_basedir
,
included_roles
=
included_roles
,
vault_password
=
self
.
vault_password
)
play
=
Play
(
self
,
play_ds
,
play_basedir
,
vault_password
=
self
.
vault_password
)
assert
play
is
not
None
# add any new roles brought in by this play to the
# global list of roles we're tracking
for
role
in
play
.
included_roles
:
if
role
not
in
included_roles
:
included_roles
.
append
(
role
)
matched_tags
,
unmatched_tags
=
play
.
compare_tags
(
self
.
only_tags
)
matched_tags_all
=
matched_tags_all
|
matched_tags
unmatched_tags_all
=
unmatched_tags_all
|
unmatched_tags
...
...
lib/ansible/playbook/play.py
View file @
b6056044
...
...
@@ -49,7 +49,7 @@ class Play(object):
# *************************************************
def
__init__
(
self
,
playbook
,
ds
,
basedir
,
included_roles
=
[],
vault_password
=
None
):
def
__init__
(
self
,
playbook
,
ds
,
basedir
,
vault_password
=
None
):
''' constructor loads from a play datastructure '''
for
x
in
ds
.
keys
():
...
...
@@ -81,7 +81,7 @@ class Play(object):
self
.
_update_vars_files_for_host
(
None
)
# now we load the roles into the datastructure
self
.
included_roles
=
included_roles
self
.
included_roles
=
[]
ds
=
self
.
_load_roles
(
self
.
roles
,
ds
)
# and finally re-process the vars files as they may have
...
...
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