Deploy OA, ALW on sqad devbox 
=================================================

# General Set-up alw.{{ username }}.{{ squad_domain }}, oa.{{ username }}.{{ squad_domain }} web applicatios

1. Install on local machine ansible (http://docs.ansible.com/ansible/latest/intro_installation.html)
2. cp < path to your ssh key to the devbox> files/ssh/aws/private
3. cp < path to your git private ssh key> files/ssh/git/git_key
4. cp ../../config/config_dev_example.yml ../../config/config_dev.yml
5. vi ../../config/config_dev.yml # Fill this file with your credential
6. run sudo ansible-playbook -i hosts/dev webserver_dev.yml -vv

# Partial set-up

In some cases you need run just part of the deploy it can be used by tags. Below you can find list of useful commands:

## Make Git pull for Orchard repo on devbox to the master version:
sudo ansible-playbook -i hosts/dev webserver_dev.yml --tags="orchard-app-git"

## Make Git pull for API repo on devbox to the master version:
sudo ansible-playbook -i hosts/dev webserver_dev.yml --tags="orchard-api-git"

## Re-init Orchard shadow files configs on devbox:
sudo ansible-playbook -i hosts/dev webserver_dev.yml --tags="orchard-app-init"

## Re-init API shadow files configs on devbox:
sudo ansible-playbook -i hosts/dev webserver_dev.yml --tags="orchard-api-init"

## Re-init Apache Vhost files with restarting apache on devbox:
sudo ansible-playbook -i hosts/dev webserver_dev.yml --tags="orchard-apache-vhost"

## Combine commands

you can combine commands, implode them with coma:

sudo ansible-playbook -i hosts/dev webserver_dev.yml -vv --tags="orchard-api-git,orchard-app-git,orchard-api-init,orchard-app-init"