Adjust moe access to existing networks file

pull/819/head
Kieran Prasch 2019-03-08 17:08:49 -08:00
parent 9e3139ffa3
commit e9bf56e4d3
1 changed files with 6 additions and 2 deletions

View File

@ -8,8 +8,12 @@
raw: sudo apt -y update && sudo apt install -y python2.7-minimal python2.7-setuptools
- include_vars: "{{ lookup('env', 'ANSIBLE_VARIABLES') }}"
- include_vars:
file: "{{ networks_file }}"
name: networks
vars:
networks_file: "{{ lookup('file', '../../networks.json') | from_json }}"
networks_file: "{{ lookup('file', networks_filepath) | from_json }}"
tasks:
- name: "Install System Dependencies"
@ -62,7 +66,7 @@
vars:
virtualenv_path: '/home/ubuntu/venv'
nucypher_network_domain: "{{ lookup('env', 'NUCYPHER_NETWORK_NAME') }}"
teacher_uri: "{{ networks_file[lookup('env', 'NUCYPHER_NETWORK_NAME')][0] }}"
teacher_uri: "{{ networks[lookup('env', 'NUCYPHER_NETWORK_NAME')][0] }}"
- name: "Enable and Start Moes's Monitoring"
become: yes