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

[tor-commits] [metrics-cloud/master] onionoo: only use pass if you're irl



commit a9fb3d1201c6ad15cef713a1d72075dd67d4f594
Author: Iain R. Learmonth <irl@xxxxxxxx>
Date:   Wed Oct 30 12:37:31 2019 +0000

    onionoo: only use pass if you're irl
---
 ansible/onionoo-backends.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ansible/onionoo-backends.yml b/ansible/onionoo-backends.yml
index c86be97..53e43ff 100644
--- a/ansible/onionoo-backends.yml
+++ b/ansible/onionoo-backends.yml
@@ -7,7 +7,9 @@
       local_action: shell pass Tor/sudo/onionoo
       register: pass_output
       changed_when: False
+      when: ansible_user_id == "irl"
     - name: store as ansible become password
       set_fact: ansible_become_password="{{ pass_output.stdout_lines[0] }}"
+      when: ansible_user_id == "irl"
   roles:
     - onionoo-backend

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