This project/repo showing sample Ansible usecase. One control node VM + 3 VMs as webservers.
VM image: Ubuntu 20.04
Infrastructure provisioning:
vagrant up
Nginx config file with loadbalacer setup nginx.config
Playbook and hosts file.
In order to run it:
ansible-playbook playbook.yml -i hosts