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

  • Ansible Shell Cannot Pull Docker Image
  • Can Ansible deploy Docker containers remotely?
  • Testing ansible playbook with systemd services in docker
  • Ansible, how to add user to group only if user exists
  • Managing Docker containers from Ansible plays
  • Centos7 docker-py doesn't seem to be installed
    • 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.

  • Use Docker rather than native/homebrew on Mac?
  • Is using phusion/baseimage still worth it? [closed]
  • Docker returns “json: cannot unmarshal string into Go value of type []string”
  • Cannot read docker container logs: Permission denied
  • Electron inside Docker with X11 Forwarding - No Protocol Specified
  • Docker Use LXC with Direct Host Networking
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.