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
a3d90e8a
Commit
a3d90e8a
authored
Jan 04, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5498 from j2sol/exit_setup_early
Return early from setup step when possible
parents
227e8e31
35328ed5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/ansible/playbook/__init__.py
+3
-3
No files found.
lib/ansible/playbook/__init__.py
View file @
a3d90e8a
...
...
@@ -433,11 +433,11 @@ class PlayBook(object):
def
_do_setup_step
(
self
,
play
):
''' get facts from the remote system '''
host_list
=
self
.
_list_available_hosts
(
play
.
hosts
)
if
play
.
gather_facts
is
False
:
return
{}
elif
play
.
gather_facts
is
None
:
host_list
=
self
.
_list_available_hosts
(
play
.
hosts
)
if
play
.
gather_facts
is
None
:
host_list
=
[
h
for
h
in
host_list
if
h
not
in
self
.
SETUP_CACHE
or
'module_setup'
not
in
self
.
SETUP_CACHE
[
h
]]
if
len
(
host_list
)
==
0
:
return
{}
...
...
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