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
1ed9b662
Commit
1ed9b662
authored
Dec 11, 2014
by
Costi Ciudatu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run_once tasks are skipped without checking the delegate_to host #9784
parent
5ed7a559
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
lib/ansible/runner/__init__.py
+8
-2
No files found.
lib/ansible/runner/__init__.py
View file @
1ed9b662
...
...
@@ -1461,9 +1461,15 @@ class Runner(object):
# Expose the current hostgroup to the bypassing plugins
self
.
host_set
=
hosts
# We aren't iterating over all the hosts in this
# group. So, just pick the first host in our group to
# group. So, just choose the "delegate_to" host if that is defined and is
# one of the targeted hosts, otherwise pick the first host in our group to
# construct the conn object with.
result_data
=
self
.
_executor
(
hosts
[
0
],
None
)
.
result
if
self
.
delegate_to
is
not
None
and
self
.
delegate_to
in
hosts
:
host
=
self
.
delegate_to
else
:
host
=
hosts
[
0
]
result_data
=
self
.
_executor
(
host
,
None
)
.
result
# Create a ResultData item for each host in this group
# using the returned result. If we didn't do this we would
# get false reports of dark hosts.
...
...
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