[tor-commits] [gettor/master] Fix playbook

hiro at torproject.org hiro at torproject.org
Fri Sep 27 15:04:04 UTC 2019


commit c91e76420d901e9aee226a0348fa58fe77c27f3d
Author: hiro <hiro at torproject.org>
Date:   Fri Sep 27 17:04:00 2019 +0200

    Fix playbook
---
 roles/gettor/tasks/main.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/roles/gettor/tasks/main.yml b/roles/gettor/tasks/main.yml
index 6b3d0a8..705f33e 100644
--- a/roles/gettor/tasks/main.yml
+++ b/roles/gettor/tasks/main.yml
@@ -34,6 +34,11 @@
   args:
     chdir: "{{ gettor_path }}"
 
+- name: activate virtualenv
+  command: . {{ gettor_path }}/venv/bin/activate
+  become: yes
+  become_user: gettor
+
 - name: create database
   command: >
     {{ gettor_path }}/venv/bin/python3 {{ gettor_path }}/scripts/create_db -n -c -o -f gettor.db
@@ -47,7 +52,12 @@
     ./bin gettor_service stop
   args:
     chdir: "{{ gettor_path }}"
+  become: yes
+  become_user: gettor
+
 
 - name: start gettor
   command: >
     ./bin gettor_service start
+  become: yes
+  become_user: gettor



More information about the tor-commits mailing list