Rohit introduces himself and shares a guide on setting up an Ansible lab on a local system without restrictions or time limits. The prerequisites for this setup are having Docker installed and an interest in learning Ansible. To start, pull the Ubuntu image using Docker and create a Docker network with a specific subnet. Then, set up an Ansible master container by running the Ubuntu image, logging in, and installing necessary packages including Ansible. Next, set up a managed container by running another Ubuntu image, logging in, and installing required packages. To enable password-less authentication, copy the contents of the .pub file from the control container to the managed container's authorized_keys file. Validate the setup by creating an inventory file and running the ping module using Ansible. This setup allows for unlimited learning and experimentation with Ansible. If any difficulties are encountered, readers are encouraged to share their experiences in the comments. With this setup, users can now start learning Ansible without any restrictions.
dev.to
dev.to
Create attached notes ...
