Skip to content
Snippets Groups Projects
install.yml 399 B
Newer Older
  • Learn to ignore specific revisions
  • jurgenhaas's avatar
    jurgenhaas committed
    ---
    # file: roles/netdata/tasks/install.yml
    
    - name: "Clone NetData"
      git:
        accept_hostkey: true
        repo: "https://github.com/firehol/netdata.git"
        dest: "/opt/netdata"
        force: yes
      register: netdata_clone
      notify:
    
    jurgenhaas's avatar
    jurgenhaas committed
    
    - name: "Install and configure NetData"
      shell: ./netdata-installer.sh --dont-wait
      args:
        chdir: /opt/netdata
      when: netdata_clone.changed