[tor-commits] [gettor/master] Update files for syntax

hiro at torproject.org hiro at torproject.org
Sat Aug 31 12:38:42 UTC 2019


commit 0330d5724f82a87d8ce6bae4a0c21cdc4e8d5204
Author: hiro <hiro at torproject.org>
Date:   Sat Aug 31 14:38:39 2019 +0200

    Update files for syntax
---
 roles/gettor/tasks/main.yml | 88 ++++++++++++++++++++++-----------------------
 1 file changed, 43 insertions(+), 45 deletions(-)

diff --git a/roles/gettor/tasks/main.yml b/roles/gettor/tasks/main.yml
index 37a21ff..707cf7b 100644
--- a/roles/gettor/tasks/main.yml
+++ b/roles/gettor/tasks/main.yml
@@ -1,46 +1,44 @@
 ---
-- hosts: gettor
-  tasks:
-    - name: check if repository exists
-      stat:
-        path: "{{ gettor_path }}/.git/config"
-      register: stat_result
-
-    - name: update gettor source
-      git:
-        repo: "{{ gettor_repo }}"
-        dest: "{{ gettor_path }}"
-        umask: '022'
-      diff: false
-
-  - name: export stats
-    command: >
-      {{ gettor_path }}/scripts/export_stats
-
-  - name: create database
-    command: >
-      {{ gettor_path }}/scripts/create_db -n -c -o
-
-  - name: add links
-    command: >
-      {{ gettor_path }}/scripts/add_links_to_db -f gettor.db
-      
-  - name: virtualenv start
-    command: >
-      virtualenv venv
-    environment:
-          PATH: "{{ gettor_path }}"
-
-  - name: virtualenv activate
-    command: >
-      source venv/bin/activate
-    environment:
-          PATH: "{{ gettor_path }}"
-
-  - name: stop gettor
-    command: >
-      {{ gettor_path }}/bin gettor_service stop
-
-  - name: start gettor
-    command: >
-      {{ gettor_path }}/bin gettor_service start
+- name: check if repository exists
+  stat:
+    path: "{{ gettor_path }}/.git/config"
+  register: stat_result
+
+- name: update gettor source
+  git:
+    repo: "{{ gettor_repo }}"
+    dest: "{{ gettor_path }}"
+    umask: '022'
+  diff: false
+
+- name: export stats
+  command: >
+    {{ gettor_path }}/scripts/export_stats
+
+- name: create database
+  command: >
+    {{ gettor_path }}/scripts/create_db -n -c -o
+
+- name: add links
+  command: >
+    {{ gettor_path }}/scripts/add_links_to_db -f gettor.db
+
+- name: virtualenv start
+  command: >
+    virtualenv venv
+  environment:
+        PATH: "{{ gettor_path }}"
+
+- name: virtualenv activate
+  command: >
+    source venv/bin/activate
+  environment:
+        PATH: "{{ gettor_path }}"
+
+- name: stop gettor
+  command: >
+    {{ gettor_path }}/bin gettor_service stop
+
+- name: start gettor
+  command: >
+    {{ gettor_path }}/bin gettor_service start



More information about the tor-commits mailing list