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

[tor-commits] [gettor/master] Update gettor tasks



commit e97894fdd69cbd2c05e753e8b1972c1aec90c7ad
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Sat Aug 31 16:31:57 2019 +0200

    Update gettor tasks
---
 roles/gettor/tasks/main.yml | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/roles/gettor/tasks/main.yml b/roles/gettor/tasks/main.yml
index 14a1b50..4212be2 100644
--- a/roles/gettor/tasks/main.yml
+++ b/roles/gettor/tasks/main.yml
@@ -21,25 +21,19 @@
   args:
     chdir: "{{ gettor_path }}"
 
-- name: activate virtualenv
-  shell: >
-    source {{ gettor_path }}/venv/bin/activate
-  args:
-    chdir: "{{ gettor_path }}"
-
 - name: create database
   command: >
-    {{ gettor_path }}/scripts/create_db -n -c -o
+    {{ gettor_path }}/venv/bin/python3 {{ gettor_path }}/scripts/create_db -n -c -o
 
 - name: add links
   command: >
-    {{ gettor_path }}/scripts/add_links_to_db -f gettor.db
+    {{ gettor_path }}/venv/bin/python3 {{ gettor_path }}/scripts/add_links_to_db -f gettor.db
 
 - name: stop gettor
   command: >
-    {{ gettor_path }}/bin gettor_service stop
+    {{ gettor_path }}/venv/bin/python3 {{ gettor_path }}/bin gettor_service stop
 
 
 - name: start gettor
   command: >
-    {{ gettor_path }}/bin gettor_service start
+    {{ gettor_path }}/venv/bin/python3 {{ gettor_path }}/bin gettor_service start

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