You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure Ansible vars in ansible/deploy/vars.yml and ansible/monitor/vars.yml:
---
# vars file for roles/deploy
container_port: 3000
container_name: data-nordeste-frontend-beta-app
docker_image: ocaufcg/data-nordeste-frontend-beta
dns_name: <your_dns>
---
# vars file for roles/monitor
dns_name: <your_dns>
ips_to_monitor: [<ip_vm1>, <ip_vm2>]
mail_app_user: 'mail_user' # emails sender
mail_app_pass: 'mail_app_password' # password
mail_app_to: 'mail_receiver' # emails receiver
Usage
Running Ansible Playbooks
Run a playbook on the inventory:
cd ansible
ansible-playbook playbook.yml
Also, you can run using the Makefile:
# For initial setup
make ansible-setup
# For deployment
make ansible-deploy
# For monitoring configuration
make ansible-monitor
# To start Docker Compose services for deployment
make compose-deploy
# To start Docker Compose services for monitoring
make compose-monitor