summaryrefslogtreecommitdiffstats
path: root/roles/local_deploy/files/post-receive.public.sh
diff options
context:
space:
mode:
Diffstat (limited to 'roles/local_deploy/files/post-receive.public.sh')
-rw-r--r--roles/local_deploy/files/post-receive.public.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/local_deploy/files/post-receive.public.sh b/roles/local_deploy/files/post-receive.public.sh
new file mode 100644
index 0000000..ce4da28
--- /dev/null
+++ b/roles/local_deploy/files/post-receive.public.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+GIT_WORK_TREE=/etc/ansible/ git checkout -q -f
+# run ansible
+/usr/local/bin/ansible_run.sh