From 5e450c44c432b0fb3e752964153cf49cb219b7a9 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 10 Feb 2015 18:06:51 +0100 Subject: Add a comment to a few files --- roles/local_deploy/files/ansible_run.sh | 2 ++ roles/local_deploy/files/ansible_run.sudoers | 2 ++ roles/local_deploy/files/extract_wrapper.sh | 1 + roles/local_deploy/files/post-receive.private.sh | 1 + roles/local_deploy/files/post-receive.public.sh | 1 + roles/local_deploy/templates/extract.sudoers | 1 + 6 files changed, 8 insertions(+) (limited to 'roles/local_deploy') 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 }} -- cgit