From bc0dc5d9c944cd3c7960b51dfc7cac28d13e745a Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Thu, 12 May 2016 11:02:43 +0200
Subject: [PATCH] Improve LocalSetup playbook

---
 tasks/main.yml            | 21 --------------------
 templates/tv-company.html | 42 ---------------------------------------
 2 files changed, 63 deletions(-)
 delete mode 100644 templates/tv-company.html

diff --git a/tasks/main.yml b/tasks/main.yml
index a3f7949..7acbe0d 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -39,27 +39,6 @@
     - "Include NetData to Boot-List"
     - "Start NetData"
 
-- name: "Check if local netdata installation exists"
-  shell: ls /usr/share/netdata/web/index.html
-  delegate_to: localhost
-  run_once: true
-  register: netdata_local_available
-  failed_when: false
-  changed_when: false
-  tags: 'LocalConfig'
-
-- name: "Install local dashboard"
-  template:
-    src=tv-company.html
-    dest=/usr/share/netdata/web/{{ lookup('env','ANSIBLE_COMPANY') }}.html
-    owner=netdata
-    group=netdata
-    mode=644
-  delegate_to: localhost
-  run_once: true
-  tags: 'LocalConfig'
-  when: netdata_local_available.stdout == '/usr/share/netdata/web/index.html'
-
 - name: "Configure FireQoS"
   template:
     src=etc_fireqos_fireqos.conf
diff --git a/templates/tv-company.html b/templates/tv-company.html
deleted file mode 100644
index db945a8..0000000
--- a/templates/tv-company.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-	<title>Tineon NetData</title>
-
-	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-	<meta charset="utf-8">
-	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-	<meta name="viewport" content="width=device-width, initial-scale=1">
-	<meta name="apple-mobile-web-app-capable" content="yes">
-	<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
-
-	<script>
-	var netdataTheme = 'slate';
-	</script>
-	<script type="text/javascript" src="dashboard.js"></script>
-
-	<script>
-	NETDATA.options.current.destroy_on_hide = true;
-	NETDATA.options.current.eliminate_zero_dimensions = true;
-	NETDATA.options.current.stop_updates_when_focus_is_lost = true;
-	</script>
-
-</head>
-<body>
-
-<div style="width: 100%; text-align: center; display: inline-block;">
-{% for host in groups.all %}
-{% if host != 'localhost' %}
-	<a href="http://{{ host }}:19999" target="_blank">
-	<div data-netdata="system.load"
-			data-host="http://{{ host }}:19999"
-			data-title="{{ host }}"
-			data-chart-library="gauge"
-			data-width="10%"
-			data-height="100px"
-			></div></a>
-{% endif %}
-{% endfor %}
-</div>
-</body>
-</html>
-- 
GitLab