ansible-middleware / amq_streams

Apache License 2.0
8 stars 6 forks source link

Reogarnising the playbooks and the molecules scenarios #95

Closed rpelisse closed 11 months ago

rpelisse commented 11 months ago

@rmarting I've reorganized our playbooks and molecule scenario to be more consistent with the Ansible best practices. Most of our playbooks inside the folder playbooks are actually advanced scenarios (advanced examples) and not really "ready to be used" playbooks. So instead using import playbook in the converge (which also not recommanded), I've move them into their own scenario. I've added to the playbooks folder ready to be use playbook to set up a brokers, zookeepers, connect or control cruise. So now, collection users can simply provides (for instance) the inventory of their brokers and directly run the playbook we provided:

$ ansible-playbook -i inventory middleware_automation.amq_streams.brokers

PS: Fun fact, doing the reorg, I stumble upon the same bug you had in your blogpost! That's one of the reason, it was good to move those playbook into the molecule scenario, better control of their content.