Ansible project to setup, build and deploy docker containers on push to Maannniii/sample-react-app.
- Install ansible.
- Add entry for server2 in /etc/hosts.
- Add ssh-keys of server1 to server2.
- Install and setup Jenkins.
- Add web hook to repo.
cdtoansibledirectory.- Update
hostsfile. - Update variables in
group_vars/all. - Run as
ansible-playbook -i hosts setup.yml.
cdtoansibledirectory.- Run as
ansible-playbook -i hosts deploy.yml.
In order to keep it simple and cross compatible IaaC is followed. The same has been deployed and tested in both DigitalOcean and AWS on bare metal servers.