I am planning to build test environment using ansible, jenkins and docker together.The plan is like this.
Create ansible playbooks for every tool that you are using in your environment and store them on git.
Using jenkins create job to create docker containers on dev server and use ansible playbooks for provisioning the docker containers.
Jenkins jobs will be created so that user will have option to select playbooks that they want to use with docker containers and containers will be built accordingly.
whole concept can be summarized as shown is below image.
The benefits i see are
Automatic replication of exact production environments.
Scale your test environment as per requirement.
Provide different platforms for application testing on a single server.
Faster integration testing.
Promote agile methodology.
Freedom to develop and customize the test environment.
Developers and testers can create environments on their own even if they don’t know anything regarding OS,configuration.
Test the deployment of the app in a clean environment, a fresh build.
Has any one implemented such type of environment architecture,i would like to discuss the feasibility actual benefits of the same.