The ansible section https://github.com/airavata-courses/spring17-devops/tree/master/infrastructure/Ansible-Infrastructure looks like it is largely taken from https://github.com/atplanet/ansible-auto-scaling-tutorial