Skip to content
Snippets Groups Projects
Commit 4504034f authored by jurgenhaas's avatar jurgenhaas
Browse files

Move Tineon specific tasks into customer inventory

parent eba4b8ad
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment