Launch containers
docker-compose up -dJump to the control node from host machine
docker-compose exec control bashCleanup
docker compose downInstall ansible
sudo apt update
sudo apt-get install nano
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get install ansibleSetup ansible
sudo nano /etc/ansible/hostsContent of host the file:
[servers]
server1 ansible_host=node1
server2 ansible_host=node2
server3 ansible_host=node3
[all:vars]
ansible_connection=ssh
ansible_user=root
ansible_ssh_pass=password
ansible_python_interpreter=/usr/bin/python3
Test conectivity
ansible-inventory --list -y
ansible all -m ping -u root
ansible all -a "df -h" -u rootConnect with nodes (ssh password is "password" without quotes):
ssh root@node1
ssh root@node2
ssh root@node3Shared folder between host machine and control node:
cd /sharedAnd do the magic here!