Note:
This will create 5 nodes in total
3 Ubuntu and 2 Oracle-Linux machines
See thedocker-compose.yaml
- Have Docker installed
- Have Docker Compose installed
- Start the Docker daemon
- You might want to add your user to the
docker
group for Ubuntu - And optionally, install my version (check the screenshot below) of higher
Horror.Ansible.Project.mp4
- Git clone the repo and cd to it.
- Run
docker-compose up -d
. - Then view the logs, run
docker-compose logs -f
- Wait for about 1-5 minutes for a message like "SUCCESS! ... Happy hacking!"
- Your lab is ready!
- Open a fresh terminal for each one
- Run
docker container exec -it control-host bash
- Stay as root user.
- Then in the container, run
cd ~/ansible-project
as this is your base ansible directory - Your lab is ready! You can now control and configure all servers. Run
ansible all -m ping
to test your servers' connections.
Note: Each of the 4 nodes (each server node)
have the following default user credentials on them.
username: zero
password: ][poiuy
- Open a fresh terminal for each one
- Run
docker container exec -it server-1 bash
- Then switch to
zero
user, runsu - zero
use\][poiuy
as the password.