APACHE WEBSERVER CONFIGURATION IN DOCKER USING ANSIBLE

🔰What is Docker?

🔰What is Ansible?

🔰Ansible Architecture :

♦️ Ansible Playbooks :

♦️ Inventory :

♦️ Control Node:

pip3 install ansible
yum install sshpass
#To see version of ansible installed
ansible --version

♦️ Managed Node:

🔰To check connectivity with all Managed Nodes:

ansible all -m ping

🔰In PlayBook :

🔰After this, run playbook :

ansible-playbook -v docker.yml

🔰To check docker is configured and services are started in Managed Node :

docker --version 
systemctl status docker

🔰To check container is launched :

docker ps -a

🔰To check IP of Docker Container:

docker inspect httpd-web | grep IP

🔰Let’s check on Browser :