Latest Updates

Retrieve Container IP and Update Ansible Inventory Using Ansible

 

WHAT IS DOCKER?


WHAT IS ANSIBLE?

Task Objective

Let’s Get Started

[{{container_name}}]
{{result['container']['NetworkSettings']['IPAddress']}} ansible_connection=ssh ansible_user=root ansible_ssh_pass=root
Step 1. launch Container and retrieve the IP of the container

ansible-playbook "playbook name"

In this way, we have seen that for some custom requirements we can use ansible to configure container, and using ansible ssh we able to configure webserver container successfully.

No comments