Ansible 2.0 : question about facts applied to delegated host

Hello,

We have a question about an Ansible 2 change.

In the V2 changelog, we can see “Now when you delegate an action that returns ansible_facts, these facts will be applied to the delegated host, unlike before when they were applied to the current host”

We think it may have a big impact for us.

Because on our side, we have several custom modules for EC2 and Proxmox which gather facts for a server and which use directly BOTO or Proxmox REST API from the server where Ansible is installed so we call these modules with a “delegate_to 127.0.0.1”.

Moreover, we use these modules in several contexts, especially in several cases where servers are not UP (to start VM, to update some configuration, etc…) where we MUST delegate to avoid SSH timeout.

If the fact is applied to 127.0.0.1, the current play_hosts won’t be able to access them which is a big problem for us.

So, will there be a way to keep the current behaviour ?

Thanks,

Ludo

Hi,

This was already brought to our attention by several users, it was a
case I had missed when asking for the feature.

For now we are removing the feature for 2.0 and will bring it back in
2.1 with a configurable flag that defaults to the current behavior.
You will see the change in RC2.