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
6c5761a7
Commit
6c5761a7
authored
Aug 10, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store the ${last_result} for each host to make it usable in only_if conditionals and such.
parent
58e099b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
CHANGELOG.md
+1
-0
lib/ansible/playbook/__init__.py
+1
-0
No files found.
CHANGELOG.md
View file @
6c5761a7
...
...
@@ -27,6 +27,7 @@ Ansible Changes By Release
*
allow variables in parameterized task include parameters (regression)
*
make remote_md5 internal function work with non-bash shells
*
allow user to be passed in via --extra-vars (regression)
*
${last_result} variable stores the last result for each host
0.
6 "Cabo" -- August 6, 2012
...
...
lib/ansible/playbook/__init__.py
View file @
6c5761a7
...
...
@@ -224,6 +224,7 @@ class PlayBook(object):
for
host
,
result
in
results
[
'contacted'
]
.
iteritems
():
facts
=
result
.
get
(
'ansible_facts'
,
{})
self
.
SETUP_CACHE
[
host
]
.
update
(
facts
)
self
.
SETUP_CACHE
[
host
][
'last_result'
]
=
result
# flag which notify handlers need to be run
if
len
(
task
.
notify
)
>
0
:
...
...
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