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

[tor-commits] [gettor/master] Use shell instead of command



commit 16eca654a15e648604e9a15fe871405ea45ec642
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Fri Sep 27 17:20:13 2019 +0200

    Use shell instead of command
---
 roles/gettor/tasks/main.yml | 29 +++++++++--------------------
 1 file changed, 9 insertions(+), 20 deletions(-)

diff --git a/roles/gettor/tasks/main.yml b/roles/gettor/tasks/main.yml
index 705f33e..feb9660 100644
--- a/roles/gettor/tasks/main.yml
+++ b/roles/gettor/tasks/main.yml
@@ -25,39 +25,28 @@
   when: not stat_result.stat.exists
 
 - name: export stats
-  command: >
-    {{ gettor_path }}/scripts/export_stats
+  shell: {{ gettor_path }}/scripts/export_stats
 
 - name: create virtualenv
-  command: >
-    virtualenv {{ gettor_path }}/venv
+  shell: virtualenv {{ gettor_path }}/venv
   args:
     chdir: "{{ gettor_path }}"
 
 - name: activate virtualenv
-  command: . {{ gettor_path }}/venv/bin/activate
-  become: yes
-  become_user: gettor
+  shell: . {{ gettor_path }}/venv/bin/activate
 
 - name: create database
-  command: >
-    {{ gettor_path }}/venv/bin/python3 {{ gettor_path }}/scripts/create_db -n -c -o -f gettor.db
+  shell: {{ gettor_path }}/venv/bin/python3 {{ gettor_path }}/scripts/create_db -n -c -o -f gettor.db
 
 - name: add links
-  command: >
-    {{ gettor_path }}/venv/bin/python3 {{ gettor_path }}/scripts/add_links_to_db -f gettor.db
+  shell: {{ gettor_path }}/venv/bin/python3 {{ gettor_path }}/scripts/add_links_to_db -f gettor.db
 
 - name: stop gettor
-  command: >
-    ./bin gettor_service stop
+  shell: ./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
+  shell: ./bin gettor_service start
+  args:
+    chdir: "{{ gettor_path }}

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