forked from freedomofpress/securedrop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extract_apptor_test_config.yml
38 lines (33 loc) · 1.02 KB
/
extract_apptor_test_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
- name: Create ansible fact directory
file:
path: /etc/ansible/facts.d
recurse: yes
state: directory
owner: root
group: root
- name: Copy over tor application fact file
copy:
src: tor_app.fact
dest: /etc/ansible/facts.d/tor_app.fact
mode: 0755
- name: Refresh remote "local facts" for glory
setup:
filter: ansible_local
- name: Gather apptest facts to dict to prepare for output
set_fact:
_tbb_selenium_dict:
hidserv_token: "{{ ansible_local.tor_app.hidserv_token }}"
journalist_location: "{{ ansible_local.tor_app.journalist_location }}"
source_location: "{{ ansible_local.tor_app.source_location }}"
sleep_time: "{{ tbb_sleep_time }}"
user:
name: "{{ tbb_selenium_user }}"
password: "{{ tbb_selenium_password }}"
secret: "{{ tbb_selenium_secret }}"
- name: Dump facts to local json for in-take
copy:
content: "{{ _tbb_selenium_dict | to_nice_json }}"
dest: "{{ tbb_funcfolder }}"
become: no
delegate_to: localhost