delegate_to not working with hosts not in inventory?

Just upgraded to 1.8.2 and noticed a change in behavior (previosuly on 1.7.2)

delegate_to only works when the host we wnat to delegate to is in the current inventory, is this intentional? It was working fine on 1.7.2

Also, another delegate_to apparent change… we previously used 'delegate_to: “{{ nagios_server}}” ’ to delegate to different hosts (nagios servers) when required… this has also stopped working. it seems it doesnt evaluate the variable any more and attempts to use the string “{{ nagios_server}}” as a host.

Thanks!

Can add that we have downgraded to 1.8.1 and both things appear to work fine…

Thanks Tim, there was a bugfix related to delegate_to in this release, which may have created this bug. We’ll look into this today.

“delegate_to only works when the host we wnat to delegate to is in the current inventory, is this intentional? It was working fine on 1.7.2”

Ok, doesn’t sound to be super breaking, but we’re on it. Thanks for the report.

Just committed a fix for this to devel that should fix both of these
problems. There was an initial fix last week which only fixed the
first problem. In case you're looking to patch your code, the new
fix[1]_ overwrites the previous one[2]_: so you'll need to apply it
manually

[1]_: https://github.com/ansible/ansible/commit/3269a349f32a2b5c1fc079a2d174e01c541f444b
[2]_: https://github.com/ansible/ansible/commit/b042fcc349f965a60943a3bfcf25f143b5fff3dc

-Toshio