From 4504034f60aae26ecd973a283f0f186ac201c543 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Mon, 14 Mar 2016 17:49:16 +0100
Subject: [PATCH] Move Tineon specific tasks into customer inventory

---
 tasks/configure.yml | 15 ---------------
 templates/update_sh | 11 -----------
 2 files changed, 26 deletions(-)
 delete mode 100644 templates/update_sh

diff --git a/tasks/configure.yml b/tasks/configure.yml
index 03cb7f3..bee426b 100644
--- a/tasks/configure.yml
+++ b/tasks/configure.yml
@@ -53,21 +53,6 @@
         group=root
         mode=444
 
-- name: "Proxy | Install update script"
-  template: src=update_sh
-            dest=/etc/haproxy/update/update.sh
-            owner=root
-            group=root
-            mode=700
-
-- name: "Proxy | Install update cron"
-  cron: name='Update S-Verein Homepage Domains'
-        month='*'
-        day='*'
-        hour='*'
-        minute='*/1'
-        job='/etc/haproxy/update/update.sh >/dev/null 2>&1'
-
 - name: "Proxy | Update blacklist"
   template: src=blacklist
             dest=/etc/haproxy/blacklist
diff --git a/templates/update_sh b/templates/update_sh
deleted file mode 100644
index 6708641..0000000
--- a/templates/update_sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-
-rm -Rf /tmp/haproxy_update
-mkdir /tmp/haproxy_update
-php /etc/haproxy/update/update.php 127.0.0.1 8011 root root crm /tmp/haproxy_update {{inventory_hostname}}
-rc=$?
-if [ $rc == 99 ]
-  then
-    cp /tmp/haproxy_update/* /etc/haproxy
-    service haproxy restart
-fi
-- 
GitLab