Hi, 

   you will need to use the docker image module 
<http://docs.ansible.com/ansible/docker_image_module.html> to ensure you 
have the needed docker image and then use the docker container module 
<https://docs.ansible.com/ansible/docker_container_module.html> to create a 
new container and start it. However, there are serveral problems with the 
current version of ansible that may be in your way. I tried to work with 
docker through ansible a couple of days ago and I had to face all these 
bugs:

https://github.com/ansible/ansible-modules-core/issues/705
https://github.com/ansible/ansible-modules-core/issues/4770 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fansible%2Fansible-modules-core%2Fissues%2F4770&sa=D&sntz=1&usg=AFQjCNFjwu7udUZHGrN4xR3kD9BYOZ1PtQ>
https://github.com/ansible/ansible-modules-core/issues/3528 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fansible%2Fansible-modules-core%2Fissues%2F3528&sa=D&sntz=1&usg=AFQjCNFMuKGPq6FuLIIQf-jK6YsqddIk2Q>
https://github.com/ansible/ansible-modules-core/issues/1220 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fansible%2Fansible-modules-core%2Fissues%2F1220&sa=D&sntz=1&usg=AFQjCNHaHAOEFiwAymNMkykZ2mPG_cos7Q>

   If you dont want to wait for the new version with this fixes and also 
apply some workarounds, maybe you should use the command module and call 
docker directly.

Regards

quarta-feira, 19 de Outubro de 2016 às 17:07:24 UTC+2, [email protected] 
escreveu:
>
> Hi,
>
> I am trying to create docker containers with the help of ansible playbook. 
> Need help!
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d54d6a45-9a1b-4fa9-aac8-b5cd1686057a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to