-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with delegate_to/with_items #7535
Comments
Can you use the debug module to show us what's all in the list you have? (groups.auxillary) Not sure if the empty text above would cause nany issues, but can you show the full -vvvv output as Ansible requested you provide as opposed to just the first three lines? |
Will do both as soon as possible. The empty text after |
Here is the output of
The relevant tasks are
The output:
|
I can confirm this issue on the current development branch. Here is a minimal example, which shows the bug:
Note, that I had to create a role in which the task is executed. Omitting the role and simply putting the task directly into test.yml does not yield the issue. |
I've tracked this down to 2e2e5d5, looking into why now. |
@bretmartin I found it as the result of doing a |
I have merged in the above patch to resolve this issue. Essentially, there was some code left over from deprecating the "include + with_items" feature that caused an empty string to be assigned to the Please let us know if you continue seeing any problems related to this. Thanks! |
I can confirm that 74f20eb fixes the problem for me. @jimi-c Thanks, I'm familiar with |
Oh, my apologies. No, I don't believe there is. Typically we cherry-pick things between branches, which will result in a new SHA. Since I don't typically add a commit message regarding the cherry-pick origin, the only way to tell would be by the commit message and diff (which should normally be identical, unless there was a merge conflict of course). |
Sorry, for the late reply. Just did a |
Also cleaning up integration tests that had checks for the empty item attribute in certain results. Fixes #7535
Issue Type:
Bug Report
Ansible Version:
ansible 1.6.2 (release1.6.2 549f67c) last updated 2014/05/25 13:22:57 (GMT -400)
Environment:
Debian "wheezy"
Summary:
The following task broke between 1.6.1 and 1.6.2:
Adding
-vvvv
, I found the SSH connection the delegated host to look likeNote the empty string between the
ConnectTimeout
argument and the remote command line.I was able to narrow this apparent regression down to commit 8851cea but it isn't immediately evident to me how to correct it.
Steps To Reproduce:
Run a task with
delegate_to
across hosts specified withwith_items
.Expected Results:
Delegated task runs on hosts specified with
with_items
.Actual Results:
SSH command line is constructed without a hostname and connection fails with
ssh: Could not resolve hostname : No address associated with hostname
; ansible run subsequently fails withfatal: [miranda.internal.miranda.org] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue
The text was updated successfully, but these errors were encountered: