Playbook interdependencies

I am preparing a playbook to configure my use of papertrailapp.com.

In turn, producing a file like https://github.com/papertrail/remote_syslog/blob/master/examples/log_files.yml.example is desired.

For my use case, I cannot rely on a single kind of web server or database being in place. I can rely on having used a playbook from roles/ to have been referenced/run/included, whatever the appropriate term is.

I’d like the entries to be determined by the other playbooks that run along with it. For example, when I include the torquebox role, the log_files.yml should include /var/log/torquebox/*.conf, but that won’t be present unless the role has run alongside/before the papertrailapp role.

Is this a sensible thing to desire? Is there a supported way to do this with ansible? I can understand how to store desired log file locations inside each role’s vars file, but then how would I aggregate them into the file in that way?

Thanks so much for ansible, I’m a big fan.

I am having a little bit of a hard time understanding what you are trying to convey. This is probably on my end.

1.3 features role dependencies, which are perhaps quite relevant, and are documented in the roles sections.

I’m about to push out a nice docs reorg that makes all this easier to find, but it’s there now in the playbooks chapter if you want to take a look.