At some point or another I intend to have a way of interleaving
playbooks to make tasks like setting up both sides of a connection
easier. An example scenario would be:
HostA is a monitoring server. HostB, HostC, and HostD is a newly
provisioned remote clients. In order to bootstrap monitoring of the
remotes there is a playbook pbA that sets up the monitoring client on
the remote hosts, and a playbook pbB that uses some information from
pbA to add the remotes to the list of monitored hosts. The workflow
for multiple clients would be pbA,pbB,pbA,pbB,...
I'm thinking of two ways to approach this - One would be to create a
meta-ansible suite, which would be able to execute multiple playbooks
in any order and pass in arbirtary variables. Another would be to
create some module in ansible that would in effect do a local system
call to run another playbook. The first option would be easier to
implement since it can be done in any language. The second option
would be more integrated with ansible, would help avoid having to
unroll loops (since they can be called like any other ansible module)
and may also be a way to address some of the current feature requests
such as iterating over lists.
I'm looking for input from the community as to whether there would be
sufficient demand/interest for the second option. I think in the long
run I'd like to go with it regardless, but if there is little interest
in such functionality right now I'd just use other methods to script
multiple playbooks in the short term in order to have the
functionality myself faster. Anyway, comments would be appreciated
Regards....