How to use yml file generated by anisible-container

I have been working on the use of ansible-container
I created the following setup

  • An ec2 instance with the latests versions of python, pip, docker, docker-compose, ansible, and ansible-container (call this Machine A)
  • On this instance, I downloaded and installed the bleeding edge version of ansible-container from github using pip -e to install to use a local repo
  • I then cloned my ansible-container project to that instance
  • I was able to run ansible-container build, run, push and deploy without errors
  • This resulted in built images on my company’s private docker repo + a yml script generated by the ansible-container deploy command
  • I have not included any log or scripts because all of this worked, but I can supply if needed

Now I would like to deploy those images as container onto another machine (call this Machine B), but the documentation is unclear on the the steps to follow. Should I

  • Docker image is not visible when I run docker ps
  • Error while changing hostname inside docker container
  • Ansible Docker Connection Error
  • How to deploy a Rails app with GitLab CI + Docker + Ansible?
  • Docker, How to replace capistrano tasks in docker
  • docker extra_host parameter expects a dictionary value for hostname, how can I use a variable?
    • Run the script generated by ansible-container deploy using
      ansible-playbook on Machine A or Machine B
    • What should I put in the hosts file

      I have read and re-read the ansible-container documentation, but the final implementation is unclear. Again, I can supply any scripts, but there are no errors, I am just trying to figure out the next steps to execute.

  • How can I run my docker container with installed Nginx?
  • Docker ps -a doesn't show a stopped mysql client running container
  • List images created by Docker for Mac using Docker Toolbox
  • Understanding vagrant with a docker provisioner
  • How to specify the IP address when creating a docker virtual machine
  • Integrating Docker-Machine with Amazon EC2
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.