Fix linter errors on netstat role

This commit is contained in:
Aleksey Zalesov 2018-02-26 17:36:09 +03:00
parent e0d90df027
commit bbdfb8c6da
1 changed files with 6 additions and 2 deletions

View File

@ -13,7 +13,7 @@
dest: "{{ home }}/eth-netstats"
version: "cb431d6"
- name: Set owner and group on eth-netstats files
- name: Set owner and group on eth-netstats files
file: path={{ home }}/eth-netstats owner={{ username }} group={{ username }} recurse=yes
- name: install npm netstats
@ -33,9 +33,13 @@
shell: "cd /home/{{ username }}/eth-netstats; grunt"
become: true
become_user: "{{ username }}"
args:
creates: "/home/{{ username }}/dist"
- name: Config ws_secret.json file
shell: "echo '[\"{{ NETSTATS_SECRET }}\"]' > /home/{{ username }}/eth-netstats/ws_secret.json"
copy:
content: '["{{ NETSTATS_SECRET }}"]'
dest: "/home/{{ username }}/eth-netstats/ws_secret.json"
notify:
- restart poa-dashboard