Skip to content

Commit

Permalink
Added task to delete .pyc files. Resolves #16.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcalazan committed Feb 14, 2015
1 parent 7cd6833 commit 026a642
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 3 additions & 9 deletions roles/web/tasks/setup_django_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
settings: "{{ django_settings_file }}"
environment: django_environment
when: run_django_syncdb
tags:
- django
- django_syncdb
tags: django.syncdb

- name: Run Django South migrations
django_manage:
Expand All @@ -23,9 +21,7 @@
settings: "{{ django_settings_file }}"
environment: django_environment
when: run_django_south_migration
tags:
- django
- django_migrate
tags: django.migrate

- name: Run Django collectstatic
django_manage:
Expand All @@ -35,9 +31,7 @@
settings: "{{ django_settings_file }}"
environment: django_environment
when: run_django_collectstatic
tags:
- django
- django_collectstatic
tags: django.collectstatic



6 changes: 6 additions & 0 deletions roles/web/tasks/setup_git_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
- name: Setup the Git repo
git: repo={{ git_repo }} dest={{ project_path }} accept_hostkey=yes
when: setup_git_repo
tags: git

- name: Delete all .pyc files
command: find . -name '*.pyc' -delete
args:
chdir: "{{ project_path }}"
tags: git

0 comments on commit 026a642

Please sign in to comment.