Hey guys,
I have a quick question. I’m currently using ansible as more of a orchestration tool then configuration management. What I currently do is use the GCE dynamic inventory script to target tags of specific clustered components. I can then make what I’m simply calling ‘plays’ to orchestrate each component. A nice example is performing service restarts in specific order. For example I have a playbook that first targets ‘worker’ processes running on ‘worker’ instances, bounces their services, after that it targets ‘web’ processes and bounces those targets (in this specific case workers must be restarted before web servers).
I’d like to know if it’s possible to do the same thing with containers. My ideal setup would be targeting multi docker hosts. Each host could be running containers with a ‘web’ and ‘worker’ tag. I’d like to be able to use the same orchestration on these containers. Is this currently possible with the current version of ansible?