Skip to content
This repository has been archived by the owner on Feb 1, 2019. It is now read-only.

Commit

Permalink
Inventory naming issue for prod; Fix permissions for django migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
davisd committed Jul 23, 2015
1 parent e76cf5b commit 33d1360
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ansible/playbook.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- hosts:
- test
- production
- prod
gather_facts: no
pre_tasks:
- name: set umask to 022 so we can deploy
Expand All @@ -15,7 +15,7 @@
- hosts:
- vagrant
- test
- production
- prod
gather_facts: no
vars:
kratos_port: 5000
Expand All @@ -34,7 +34,7 @@
sudo: yes
- hosts:
- test
- production
- prod
gather_facts: no
post_tasks:
- name: set umask to 077 for safety
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/django/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
file: path={{ data_dir }}/django owner={{ web_user }} group={{ web_user }} state=directory

- name: migrate db
shell: "{{ pantheon_dir }}/devdash/manage.py migrate"
shell: "su -l {{ web_user }} -c '{{ pantheon_dir }}/devdash/manage.py migrate'"
register: migrate_result
changed_when: "'No migrations to apply.' not in migrate_result.stdout"

0 comments on commit 33d1360

Please sign in to comment.