Hello!
I have a site.yml file, which includes a 'frontend.yml' and a 'backend.yml' playbook to configure app servers and database servers. The frontend.yml playbook is applied to the hosts in the "frontend" group, while the backend.yml file applies to the hosts in the "backend" group.
From my app servers, I would like to use "delegate_to" in order to add their individual IP address to the access-config file of a database server(s). The database server, however, may not be ready yet, so the access-config file may not be in place yet.
Is there a way to ensure that the step specified in 'delegate_to' is only run on the remote host (the database host), once the remote host is in a certain state or has finished the setup of a specific step?
Thank you very much!