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
a8108923
Commit
a8108923
authored
Apr 28, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Register skipped tasks so we can at least check their changed/not-changed status.
parent
7d302c42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
lib/ansible/playbook/__init__.py
+0
-3
lib/ansible/runner/__init__.py
+2
-2
No files found.
lib/ansible/playbook/__init__.py
View file @
a8108923
...
...
@@ -341,9 +341,6 @@ class PlayBook(object):
# add facts to the global setup cache
for
host
,
result
in
contacted
.
iteritems
():
# Skip register variable if host is skipped
if
result
.
get
(
'skipped'
,
False
):
continue
facts
=
result
.
get
(
'ansible_facts'
,
{})
self
.
SETUP_CACHE
[
host
]
.
update
(
facts
)
# extra vars need to always trump - so update again following the facts
...
...
lib/ansible/runner/__init__.py
View file @
a8108923
...
...
@@ -462,7 +462,7 @@ class Runner(object):
return
ReturnData
(
host
=
host
,
comm_ok
=
all_comm_ok
,
result
=
rd_result
)
else
:
self
.
callbacks
.
on_skipped
(
host
,
None
)
return
ReturnData
(
host
=
host
,
comm_ok
=
True
,
result
=
dict
(
skipped
=
True
))
return
ReturnData
(
host
=
host
,
comm_ok
=
True
,
result
=
dict
(
changed
=
False
,
skipped
=
True
))
# *****************************************************
...
...
@@ -494,7 +494,7 @@ class Runner(object):
conditional
=
template
.
template
(
self
.
basedir
,
self
.
conditional
,
inject
,
expand_lists
=
False
)
if
not
utils
.
check_conditional
(
conditional
):
result
=
utils
.
jsonify
(
dict
(
skipped
=
True
))
result
=
utils
.
jsonify
(
dict
(
changed
=
False
,
skipped
=
True
))
self
.
callbacks
.
on_skipped
(
host
,
inject
.
get
(
'item'
,
None
))
return
ReturnData
(
host
=
host
,
result
=
result
)
...
...
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