Code Monkey home page Code Monkey logo

ansible-netdata's People

Contributors

bierchermuesli avatar jffz avatar paulfantom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-netdata's Issues

install will not take place if you clone the repository (first time usage)

Solution:

- name: Netdata check if first time install    
  stat: path=/etc/netdata
  register: path_netdata

and to determine whether to install:

- name: "Installation"
  shell: cd /usr/src/netdata/ && ./netdata-installer.sh --dont-wait --libs-are-really-here
  notify:  Restart netdata
  when: gitupdate.changed or not path_netdata.stat.exists

(great project btw. Thanks)

packages are not updated when already installed

I think this task:

- name: install pre-requisites
  package:
    name: "{{ item }}"
    state: present
  with_items: "{{ netdata_script_dependencies }}"
  register: _install_dep_packages
  until: _install_dep_packages is succeeded
  retries: 5
  delay: 2

The 'state' part shouldn't be present but latest like so:

- name: install pre-requisites
  package:
    name: "{{ item }}"
    state: latest
  with_items: "{{ netdata_script_dependencies }}"
  register: _install_dep_packages
  until: _install_dep_packages is succeeded
  retries: 5
  delay: 2

I noticed this when running your role on a host that already had all software installed just not the latest version. Reinstalling the dependencies manually on the host with apt solved all the issues I had with this role. Can you adapt the role so it updates the dependencies when updating/installing?

Thanks for the role, I use it a lot!

Warning: configure.yml / install_release.yml is empty and had no tasks to include

Hi Geoffrey and thanks for this Ansible role! I've been using it for over a year and it saved me tones of time!

I'm opening this issue after upgrading my local copy of your role and seeing these two warnings when applying it:

[WARNING]: file /path/to/roles/jffz.netdata/tasks/configure.yml is empty and had no tasks to include
[WARNING]: file /path/to/roles/jffz.netdata/tasks/install_release.yml is empty and had no tasks to include

Deleting these two empty files does not help, but there is still something we can do to suppress the warnings. Just adding this yaml to both files seems to do the trick:

---
[]

What do you think of making this change?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.