Ansible Playbook that will retrieve new Container IP & update the Inventory..!!

DESCRIPTION:

Ansible Playbook that will retrieve new Container IP and update the inventory. So that further Configuration of Webserver could be done inside that Container.

So Before Starting First Check that the inventory file that is the ip.txt is empty or not.

Here in the Inventory file It is clearly visible that there is no IP of the docker container so Now Moving further and checking the ansible.cfg file.

Now Writing the Playbook.

Now running the playbook ansible-playbook task-14–2.yml

Now Finally we can check that the Inventory file is dynamically updated here Successfully..!!

Finally we can further configure the webserver also inside the Container whose IP has been retrieved into the Inventory file..!!

GITHUB URL:

https://github.com/shrishtikapoor01/Ansible-Docker.git

--

--

Shrishti Kapoor

Spread Knowledge because it’s all about Right Education..!!