This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git

commit f0d94cde460147b2fbbd1ad1d047ea20d49a7d4b
Author: Marcus Christie <[email protected]>
AuthorDate: Sun Nov 3 17:24:11 2019 -0500

    Exclude .git directory in built Django code
    
    For a smaller disk footprint
---
 dev-tools/ansible/roles/django/tasks/main.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dev-tools/ansible/roles/django/tasks/main.yml 
b/dev-tools/ansible/roles/django/tasks/main.yml
index 8170b81..5048c1e 100644
--- a/dev-tools/ansible/roles/django/tasks/main.yml
+++ b/dev-tools/ansible/roles/django/tasks/main.yml
@@ -104,6 +104,7 @@
     dest: "{{ airavata_django_checkout }}"
     rsync_opts:
       - "--exclude=node_modules"
+      - "--exclude=.git"
     # Bug: become_user doesn't work with synchronize: 
https://github.com/ansible/ansible/issues/29698
     rsync_path: "sudo -u {{ user }} rsync"
   # become: yes
@@ -153,8 +154,9 @@
   notify:
     - restart uwsgi
 
+# TODO: this is really slow with lots of files
 - name: Create experiment data dir
-  file: path="{{ experiment_data_dir }}" state=directory owner="{{user}}" 
group="{{group}}" recurse=yes follow=yes
+  file: path="{{ experiment_data_dir }}" state=directory owner="{{user}}" 
group="{{group}}" recurse=no follow=yes
   become: yes
 
 - name: Create file upload tmp dir

Reply via email to