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

[tor-commits] [gettor/master] Add some fix and refactoring



commit 1d88024fd3b3f34485645e2f87b0cebe8030c9c7
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Fri Sep 27 16:28:45 2019 +0200

    Add some fix and refactoring
---
 roles/gettor/tasks/main.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/roles/gettor/tasks/main.yml b/roles/gettor/tasks/main.yml
index 767518c..ac5160f 100644
--- a/roles/gettor/tasks/main.yml
+++ b/roles/gettor/tasks/main.yml
@@ -12,6 +12,18 @@
     clone: no
     update: yes
 
+- name: Check that the gmail test password file exists
+  stat:
+    path: /home/gettor/.config/test_gettor_gmail.key
+  register: stat_result
+
+- name: create a random password using many different char sets
+  copy:
+      dest: "/srv/gettor.torproject.org/home/gettor/config/test_gettor_gmail.key"
+      content:
+        password: "{{ lookup('password', 'chars=ascii_letters,digits,hexdigits,punctuation') }}"
+  when: not stat_result.stat.exists
+
 - name: export stats
   command: >
     {{ gettor_path }}/scripts/export_stats

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