How to target hosts in event driven ansible rulebook?

Hi,

I have seen the documentation of EDA. All describe a rulebook that executes a playbook that is running on the localhost. I did not find an example for a rulebook that executes a playbook on a remote host.

Any ideas? I also did not find any usable documentation for this problem.

How can I tell the eda rulebook that it need to execute a playbook for a remote host?

I have a central source-of-truth system that calls the eda with a data model of a webserver that needs to be changed. How does ansible understand that the play it to be executed on the webserver and not on the localhost?

Michael

I haven’t heard from Event driven Ansible before, but i guess you just have to define the remote host in the host: section of your Playbook.