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
ansible
directory created populatecontainer.yml
andmain.yml
with the content below - In the
ansible
directory creat a directory calledfiles
- In the
files
dorectory create a file calledindex.html
and 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
.