[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [gettor/master] Fix playbook
commit c91e76420d901e9aee226a0348fa58fe77c27f3d
Author: hiro <hiro@xxxxxxxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits