ansible starting a dockerized haproxy serving a static response
- adjust inventory to your needs (or use a different one alltogether)
- run playbook:
ansible-playbook -i inventory start.yml
- the target host should now have configuration files present at /tmp/haproxy, which will be bind-mounted into the docker container.
- the target host should begin serving http requests at port 8081 shortly after
- open browser, connect to
http://<docker host>:8081/hello