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
delegate_to with hosts from with_items not working correctly #14166
Comments
I'm seeing the same thing - but with
which spits out this with
So, it's essentially doing
If I flip the
then is does the same, but uses the |
I'm also hitting this issue. This should be a high priority bug since it affects the core functionality advertised by ansible. For instance, the |
not sure if #15024 should fix this, but it probably is related to the same part of the code (delegated vars not being recalculated per item?) |
At least v2.0.2.0-0.2.rc2 has it fixed. |
If you use RHUI3 ansible automation, please mind to update ansible to 2.2.0 because of this BZ [1]. [1] ansible/ansible#14166
If you use RHUI3 ansible automation, please mind to update ansible to 2.2.0 because of this BZ [1]. [1] ansible/ansible#14166
Confirmed fixed. (checked on ansible 2.1.0.0) |
Works on ansible 2.1.1.0, does NOT work on ansible 2.2.0 (devel da4c3eb) |
@abadger @bcoca Hosts:
Play:
Result:
|
Fresh checkout:
following playbook:
Following ouptut is generated:
The metadata says that the task is being run on each of the hosts listed in the hosts variable. But the stdout_lines indicate that the task is being run twice on the same host.
This seems related to #13880 but that issue was fixed.
The text was updated successfully, but these errors were encountered: