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
97954ff6
Commit
97954ff6
authored
Jun 22, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor tweak to potentially speed the linear strategy up
* Don't fetch vars for the task unless we're going to use them
parent
f17bdc4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/ansible/plugins/strategies/linear.py
+5
-5
No files found.
lib/ansible/plugins/strategies/linear.py
View file @
97954ff6
...
@@ -165,11 +165,6 @@ class StrategyModule(StrategyBase):
...
@@ -165,11 +165,6 @@ class StrategyModule(StrategyBase):
# corresponding action plugin
# corresponding action plugin
pass
pass
debug
(
"getting variables"
)
task_vars
=
self
.
_variable_manager
.
get_vars
(
loader
=
self
.
_loader
,
play
=
iterator
.
_play
,
host
=
host
,
task
=
task
)
templar
=
Templar
(
loader
=
self
.
_loader
,
variables
=
task_vars
)
debug
(
"done getting variables"
)
# check to see if this task should be skipped, due to it being a member of a
# check to see if this task should be skipped, due to it being a member of a
# role which has already run (and whether that role allows duplicate execution)
# role which has already run (and whether that role allows duplicate execution)
if
task
.
_role
and
task
.
_role
.
has_run
():
if
task
.
_role
and
task
.
_role
.
has_run
():
...
@@ -191,6 +186,11 @@ class StrategyModule(StrategyBase):
...
@@ -191,6 +186,11 @@ class StrategyModule(StrategyBase):
else
:
else
:
raise
AnsibleError
(
"invalid meta action requested:
%
s"
%
meta_action
,
obj
=
task
.
_ds
)
raise
AnsibleError
(
"invalid meta action requested:
%
s"
%
meta_action
,
obj
=
task
.
_ds
)
else
:
else
:
debug
(
"getting variables"
)
task_vars
=
self
.
_variable_manager
.
get_vars
(
loader
=
self
.
_loader
,
play
=
iterator
.
_play
,
host
=
host
,
task
=
task
)
templar
=
Templar
(
loader
=
self
.
_loader
,
variables
=
task_vars
)
debug
(
"done getting variables"
)
if
not
callback_sent
:
if
not
callback_sent
:
temp_task
=
task
.
copy
()
temp_task
=
task
.
copy
()
temp_task
.
name
=
templar
.
template
(
temp_task
.
get_name
(),
fail_on_undefined
=
False
)
temp_task
.
name
=
templar
.
template
(
temp_task
.
get_name
(),
fail_on_undefined
=
False
)
...
...
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