Skip to content
Snippets Groups Projects
Commit dbe3b1c4 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/paragon#403 Implement workaround for NetData in China

parent 23e34a29
No related branches found
No related tags found
No related merge requests found
......@@ -8,11 +8,22 @@
dest: "/opt/netdata"
force: yes
register: netdata_clone
when: netdata_local_archive is not defined
notify:
- "Restart NetData"
- name: "Extract NetData Archive"
unarchive:
src: '/opt/{{ netdata_local_archive }}.zip'
dest: '/opt'
remote_src: yes
register: netdata_clone
when: netdata_local_archive is defined
notify:
- "Restart NetData"
- name: "Install and configure NetData"
shell: ./netdata-installer.sh --dont-wait
args:
chdir: /opt/netdata
chdir: /opt/{{ netdata_local_archive|default('netdata') }}
when: netdata_clone.changed
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment