Configuring Apache Web Server on Docker using Ansible.

pip3 install anisble
Configuring Controller Node for Ansible
ansible all -m ping
Checking connectivity
Using vim editor for writing yml file

Lets write script to accomplish our task.

Writing ansible script
Writing ansible script
ansible-playbook docker25.yml
running yml file
running yml file
docker inspect httpd | grep IP
Finding IP address of docker container
Apache server is up and running

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store