[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [gettor/master] Update ansible web deploy playbook



commit 943c021d9dca8300f9b456c3ffaee269090b5e3b
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Fri Sep 27 18:12:36 2019 +0200

    Update ansible web deploy playbook
---
 roles/gettor-web/tasks/main.yml | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/roles/gettor-web/tasks/main.yml b/roles/gettor-web/tasks/main.yml
index f281e36..93d907a 100644
--- a/roles/gettor-web/tasks/main.yml
+++ b/roles/gettor-web/tasks/main.yml
@@ -23,13 +23,17 @@
     virtualenv: "{{ gettor_web_path }}/venv"
 
 - name: activate virtualenv
-  command: . {{ gettor_web_path }}/venv/bin/activate
+  shell: source bin/activate
+  args:
+    chdir: "{{ gettor_web_path }}/venv"
+    executable: /bin/bash
 
 - name: lektor build
-  command: lektor build -O {{ home_path }}/www
+  shell: lektor build -O {{ home_path }}/www
+  args:
+    chdir: "{{ gettor_web_path }}"
 
 - name: update static component
-  command: >
-    static-update-component gettor.torproject.org
+  shell: static-update-component gettor.torproject.org
   args:
     chdir: "{{ gettor_web_path }}"

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits