aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/ha/files/notify.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/ansible/roles/ha/files/notify.sh')
-rw-r--r--deploy/adapters/ansible/roles/ha/files/notify.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/ha/files/notify.sh b/deploy/adapters/ansible/roles/ha/files/notify.sh
new file mode 100644
index 00000000..5edffe84
--- /dev/null
+++ b/deploy/adapters/ansible/roles/ha/files/notify.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+python /usr/local/bin/failover.py $1
+mysql -uroot -e"flush hosts"
+service mysql restart