- hosts: all
  sudo: true
  remote_user: root
  vars:
    - swap_size: "6144"
  roles:
    - role: angstwad.docker_ubuntu
    - role: franklinkim.docker-compose
    - role: geerlingguy.git
    - role: novuso.swap
  tasks:
    - git: repo=git://github.com/charlieegan3/points-extraction.git
           dest=~/app
    - name: Start corenlp server
      command: docker-compose up -d corenlp_server
      args:
        chdir: ~/app
    - name: Start match api server
      command: docker-compose up -d match_api
      args:
        chdir: ~/app

- hosts: all
  sudo: true
  remote_user: root
  vars:
    - swap_size: "6144"
  roles:
    - role: angstwad.docker_ubuntu
    - role: franklinkim.docker-compose
    - role: geerlingguy.git
    - role: novuso.swap
  tasks:
    - git: repo=git://github.com/charlieegan3/points-extraction.git
           dest=~/app
    - name: Kill app
      command: docker-compose kill
      args:
        chdir: ~/app
    - name: Start corenlp server
      command: docker-compose up -d corenlp_server
      args:
        chdir: ~/app
    - name: Start match api server
      command: docker-compose up -d match_api
      args:
        chdir: ~/app

Kill running containers on redeploy
Kill running containers on redeploy

Motivation:
-force containers to restart when the app is updated

Change Explanation:
-additional step to the playbook for the DO droplet
-todo, setup different playbooks fro deploying and provisioning the
droplet.
