summaryrefslogtreecommitdiffstats
path: root/roles/local_deploy
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2015-02-10 18:06:51 +0100
committerMichael Scherer <misc@zarb.org>2015-02-10 18:06:51 +0100
commit5e450c44c432b0fb3e752964153cf49cb219b7a9 (patch)
treea0994431b7b0c47fb64bc3cf9da3215cddb37705 /roles/local_deploy
parentb1205b6993443fd6c2a5e6c9e89e102d19b53cd9 (diff)
Add a comment to a few files
Diffstat (limited to 'roles/local_deploy')
-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
-rw-r--r--roles/local_deploy/templates/extract.sudoers1
6 files changed, 8 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
diff --git a/roles/local_deploy/templates/extract.sudoers b/roles/local_deploy/templates/extract.sudoers
index 37cda43..2fc3e73 100644
--- a/roles/local_deploy/templates/extract.sudoers
+++ b/roles/local_deploy/templates/extract.sudoers
@@ -1 +1,2 @@
+# {{ ansible_managed }}
%admins ALL=(ALL) NOPASSWD: /usr/local/bin/extract_wrapper.sh {{ git_repositories_dir }}/{{ item }}