summaryrefslogtreecommitdiffstats
path: root/roles/local_deploy/files
diff options
context:
space:
mode:
Diffstat (limited to 'roles/local_deploy/files')
-rw-r--r--roles/local_deploy/files/ansible_run.sh2
-rw-r--r--roles/local_deploy/files/ansible_run.sudoers2
-rw-r--r--roles/local_deploy/files/extract_wrapper.sh1
-rw-r--r--roles/local_deploy/files/post-receive.private.sh1
-rw-r--r--roles/local_deploy/files/post-receive.public.sh1
5 files changed, 7 insertions, 0 deletions
diff --git a/roles/local_deploy/files/ansible_run.sh b/roles/local_deploy/files/ansible_run.sh
index 7a40d0b..4e43f93 100644
--- a/roles/local_deploy/files/ansible_run.sh
+++ b/roles/local_deploy/files/ansible_run.sh
@@ -1,4 +1,6 @@
#!/bin/sh
+# script managed by ansible
+
cd /etc/ansible
for i in local $(hostname -s) $(hostname -f); do
FILE=playbooks/${i}.yml
diff --git a/roles/local_deploy/files/ansible_run.sudoers b/roles/local_deploy/files/ansible_run.sudoers
index 71d226c..101cc19 100644
--- a/roles/local_deploy/files/ansible_run.sudoers
+++ b/roles/local_deploy/files/ansible_run.sudoers
@@ -1,2 +1,4 @@
+# file managed by ansible
+
Defaults:%admins !requiretty
%admins ALL=(ALL) NOPASSWD: /usr/local/bin/ansible_run.sh
diff --git a/roles/local_deploy/files/extract_wrapper.sh b/roles/local_deploy/files/extract_wrapper.sh
index 240fb71..2d30a13 100644
--- a/roles/local_deploy/files/extract_wrapper.sh
+++ b/roles/local_deploy/files/extract_wrapper.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+# script managed by ansible
export GIT_DIR=$1
GIT_WORK_TREE=/etc/ansible/ git checkout -q -f
diff --git a/roles/local_deploy/files/post-receive.private.sh b/roles/local_deploy/files/post-receive.private.sh
index 8d416ca..fd87747 100644
--- a/roles/local_deploy/files/post-receive.private.sh
+++ b/roles/local_deploy/files/post-receive.private.sh
@@ -1,2 +1,3 @@
#!/bin/sh
+# script managed by ansible
sudo /usr/local/bin/extract_wrapper.sh $(readlink -e $GIT_DIR)
diff --git a/roles/local_deploy/files/post-receive.public.sh b/roles/local_deploy/files/post-receive.public.sh
index 04d2830..483db48 100644
--- a/roles/local_deploy/files/post-receive.public.sh
+++ b/roles/local_deploy/files/post-receive.public.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+# script managed by ansible
sudo /usr/local/bin/extract_wrapper.sh $(readlink -e $GIT_DIR)
#GIT_WORK_TREE=/etc/ansible/ git checkout -q -f
# run ansible