summaryrefslogtreecommitdiff
path: root/per-service
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2016-02-19 18:29:10 +0200
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2016-02-19 21:11:26 +0000
commit672fa733bcf0b7c4dcd2abbe6194dd8d1ab11872 (patch)
tree4c49c8ed2d225421a5068f6873ae6bb0230e94de /per-service
parent1adb3c80c8a0197688f2b0c1024181911f9461ca (diff)
downloadansible-playbooks-672fa733bcf0b7c4dcd2abbe6194dd8d1ab11872.tar.gz
git-servers/gitolite: Fix detection of when initial key fetch is needed.
I'm not sure if gitolite upgrade "broke" it (likely), or we didn't have idempotency before, but now all keys are suffixed with @key_N.pub, not just multiple keys for the same user. Change-Id: I8b0b49813c8a6a47c26d460e626790f64aa20de4 Reviewed-on: https://review.linaro.org/10575 Reviewed-by: Andy Doan <andy.doan+gerrit@linaro.org>
Diffstat (limited to 'per-service')
-rw-r--r--per-service/git-servers/roles/gitolite/tasks/gitolite-tools.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/per-service/git-servers/roles/gitolite/tasks/gitolite-tools.yml b/per-service/git-servers/roles/gitolite/tasks/gitolite-tools.yml
index 055e916..9055e08 100644
--- a/per-service/git-servers/roles/gitolite/tasks/gitolite-tools.yml
+++ b/per-service/git-servers/roles/gitolite/tasks/gitolite-tools.yml
@@ -36,7 +36,7 @@
- cron
- name: See if gitolite-keys has been run before
- stat: path=/home/{{git_user}}/.gitolite/keydir/{{gitolite_admin_name}}
+ stat: path=/home/{{git_user}}/.gitolite/keydir/{{gitolite_admin_name}}@key_0.pub
register: gitolite_keys_run
- name: Initial fetch of user SSH keys