Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Repository containing the various ansible-playbooks used for deployment.

Notifications You must be signed in to change notification settings

sigdotcom/ansible-playbooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIG.com Ansible Playbooks

This respository contains the various ansible playbooks that SIG.com utilizes to automate deploying and scaling of the various projects. For more information on how ansible works, please look here. This documentation will assume prior knowledge to ansible and will not attempt to teach various concepts or terminology that anisble uses.

Ansible Setup

In order to setup ansible on your machine, simply download any supported python version from here or your package manager with pip. For Ubuntu 16.04, the following commands will download python:

sudo apt install python3 python3-pip

Ansible is just a python package so use pip to install the ansible package like so:

pip3 install ansible

Running Ansible

In order to deploy the entire website onto a single node, run the following command:

ansible-playbook -i <inventory file> site.yml --ask-become-pass

Playbooks

site.yml

Currently, the only playbook which we are utilizing is the site.yml playbook. In this playbook, the entirety of the stack (django, postgreSQL, nginx, uwsgi) is deployed onto a single node. The acm.mst.edu repository is cloned to /var/django/<build_url>/ where <build_url> is the url located in the nginx server_name configuration option.

About

Repository containing the various ansible-playbooks used for deployment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published