From: Lorin Hochstein Date: Sat, 24 Dec 2016 04:55:24 +0000 (-0800) Subject: Don't call createdb X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=93be6b363fddb7b6bf73b6d09a771e02c8cfc2f8;p=ansiblebook.git Don't call createdb --- diff --git a/ch06/playbooks/mezzanine.yml b/ch06/playbooks/mezzanine.yml index ec1a7f3..451bf1c 100644 --- a/ch06/playbooks/mezzanine.yml +++ b/ch06/playbooks/mezzanine.yml @@ -134,15 +134,14 @@ - psycopg2 - django-compressor - python-memcached - - name: sync the database, apply migrations, collect static content + - name: apply migrations to create the database, collect static content django_manage: command: "{{ item }}" app_path: "{{ proj_path }}" virtualenv: "{{ venv_path }}" with_items: - - createdb --noinput --nodata - - collectstatic - migrate + - collectstatic - name: set the site id script: scripts/setsite.py environment: