@@ -1 +1,3 @@ | |||||
--- | --- | ||||
netdata_installation_method: static |
@@ -0,0 +1,12 @@ | |||||
--- | |||||
- name: download static installation script | |||||
get_url: | |||||
url: https://my-netdata.io/kickstart-static64.sh | |||||
dest: /opt/netdata-kickstart-static64.sh | |||||
checksum: sha256:a8fa2847163a52df4fdbca76f632e53ef5c98d50dee39d6dda0c33fd0c4c204c | |||||
- name: run static installation script | |||||
command: /bin/bash /opt/netdata-kickstart-static64.sh --non-interactive | |||||
args: | |||||
creates: /opt/netdata |
@@ -0,0 +1,15 @@ | |||||
--- | |||||
- name: local facts directory | |||||
file: | |||||
path: /etc/ansible/facts.d | |||||
state: directory | |||||
- name: local facts | |||||
copy: | |||||
content: "{{ _netdata_local_facts | to_json }}" | |||||
dest: /etc/ansible/facts.d/netdata.fact | |||||
- name: reread local facts | |||||
setup: | |||||
filter: ansible_local |
@@ -1 +1,9 @@ | |||||
--- | --- | ||||
- name: reread local facts | |||||
setup: | |||||
filter: ansible_local | |||||
- include_tasks: install/{{netdata_installation_method}}.yaml | |||||
- import_tasks: local_facts.yaml |
@@ -1 +1,3 @@ | |||||
--- | --- | ||||
_netdata_local_facts: | |||||
netdata_installation_method: "{{netdata_installation_method}}" |