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
fffb1a0a
Commit
fffb1a0a
authored
Apr 06, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Loose tasks not in roles get executed after roles.
parent
f044fc34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
examples/playbooks/roletest.yml
+7
-0
lib/ansible/playbook/play.py
+6
-7
No files found.
examples/playbooks/roletest.yml
View file @
fffb1a0a
...
...
@@ -45,3 +45,10 @@
# explicit tasks and handlers can be used, but are not required.
# they will run after the roles if present.
tasks
:
# you can still have loose tasks/handlers and they will execute after roles
-
shell
:
echo 'this is a loose task'
lib/ansible/playbook/play.py
View file @
fffb1a0a
...
...
@@ -166,13 +166,12 @@ class Play(object):
handlers
=
[]
if
type
(
vars_files
)
!=
list
:
vars_files
=
[]
tasks
.
extend
(
new_tasks
)
handlers
.
extend
(
new_handlers
)
vars_files
.
extend
(
new_vars_files
)
ds
[
'tasks'
]
=
tasks
ds
[
'handlers'
]
=
handlers
ds
[
'vars_files'
]
=
vars_files
new_tasks
.
extend
(
tasks
)
new_handlers
.
extend
(
handlers
)
new_vars_files
.
extend
(
vars_files
)
ds
[
'tasks'
]
=
new_tasks
ds
[
'handlers'
]
=
new_handlers
ds
[
'vars_files'
]
=
new_vars_files
return
ds
...
...
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