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.