Skip to content

Commit

Permalink
add mongo
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Risch committed Aug 30, 2018
1 parent 9feac1d commit bc161c1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
remote_user: ubuntu
become: yes
tasks:

# Install Packages
- name: Install the packages
apt:
name: ["python-pip", "python-dev", "nginx", "gunicorn"]
state: present
# Nginx Configuration
- name: Copy NGINX
copy:
src: ./nginx/conf/default
Expand All @@ -24,3 +25,11 @@
command: gunicorn --daemon --bind 0.0.0.0:5000 wsgi:app
args:
chdir: '/var/www/html'
- name: Install MongoDb
apt:
name: mongodb
state: present
- name: Ensure Mongodb Service Up
service:
name: mongodb
state: started

0 comments on commit bc161c1

Please sign in to comment.