diff options
author | Michael Scherer <misc@zarb.org> | 2015-02-10 18:06:51 +0100 |
---|---|---|
committer | Michael Scherer <misc@zarb.org> | 2015-02-10 18:06:51 +0100 |
commit | 5e450c44c432b0fb3e752964153cf49cb219b7a9 (patch) | |
tree | a0994431b7b0c47fb64bc3cf9da3215cddb37705 /roles/local_deploy/files | |
parent | b1205b6993443fd6c2a5e6c9e89e102d19b53cd9 (diff) |
Add a comment to a few files
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/ansible_run.sudoers | 2 | ||||
-rw-r--r-- | roles/local_deploy/files/extract_wrapper.sh | 1 | ||||
-rw-r--r-- | roles/local_deploy/files/post-receive.private.sh | 1 | ||||
-rw-r--r-- | roles/local_deploy/files/post-receive.public.sh | 1 |
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 |