Here is a quick ansible-container HelloWorsld deployment running Nginx.
The config creates a single Centos 7 container running nginx exposed on port 8080.
This GIST assumes you have read the ansible-container docs and have a sucessful install of the app and its prerequisits.
- Run
ansible-container init - In the
ansibledirectory created populatecontainer.ymlandmain.ymlwith the content below - In the
ansibledirectory creat a directory calledfiles - In the
filesdorectory create a file calledindex.htmland copy the content below or your own custom HTML - Run
ansible-container build - Run
ansible-container run
You should now be able to browse to http://localhost:8080 in your local browser and see the content of files/index.html.