Browse Source

current

master
parent
commit
10cb1b61c4
5 changed files with 39 additions and 0 deletions
  1. +2
    -0
      defaults/main.yaml
  2. +12
    -0
      tasks/install/static.yaml
  3. +15
    -0
      tasks/local_facts.yaml
  4. +8
    -0
      tasks/main.yaml
  5. +2
    -0
      vars/main.yaml

+ 2
- 0
defaults/main.yaml View File

@@ -1 +1,3 @@
---

netdata_installation_method: static

+ 12
- 0
tasks/install/static.yaml View File

@@ -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

+ 15
- 0
tasks/local_facts.yaml View File

@@ -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

+ 8
- 0
tasks/main.yaml View File

@@ -1 +1,9 @@
---

- name: reread local facts
setup:
filter: ansible_local

- include_tasks: install/{{netdata_installation_method}}.yaml

- import_tasks: local_facts.yaml

+ 2
- 0
vars/main.yaml View File

@@ -1 +1,3 @@
---
_netdata_local_facts:
netdata_installation_method: "{{netdata_installation_method}}"

Loading…
Cancel
Save