diff options
Diffstat (limited to 'roles/local_deploy/files')
-rw-r--r-- | roles/local_deploy/files/ansible_run.sh | 2 | ||||
-rw-r--r-- | roles/local_deploy/files/post-receive.private.sh | 2 | ||||
-rw-r--r-- | roles/local_deploy/files/post-receive.public.sh | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/roles/local_deploy/files/ansible_run.sh b/roles/local_deploy/files/ansible_run.sh new file mode 100644 index 0000000..868ff02 --- /dev/null +++ b/roles/local_deploy/files/ansible_run.sh @@ -0,0 +1,2 @@ +#!/bin/sh +ansible-playbook -i '127.0.0.1,' -c local playbooks/deploy.yml diff --git a/roles/local_deploy/files/post-receive.private.sh b/roles/local_deploy/files/post-receive.private.sh new file mode 100644 index 0000000..e6d6abb --- /dev/null +++ b/roles/local_deploy/files/post-receive.private.sh @@ -0,0 +1,2 @@ +#!/bin/sh +GIT_WORK_TREE=/etc/ansible/ git checkout -q -f 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 |