summaryrefslogtreecommitdiff
path: root/per-service
diff options
context:
space:
mode:
authorBen Copeland <ben.copeland@linaro.org>2016-02-24 11:50:15 +0000
committerBen Copeland <ben.copeland@linaro.org>2016-02-24 16:30:34 +0000
commit8b444d9afa634c527b3951b50a2962f38fa56743 (patch)
treea77dd504759284fe0f5e25e8f17756d76d4de7ba /per-service
parent59a49fe4967d3a5d9111f33f36de2a7843dc55fe (diff)
downloadansible-playbooks-8b444d9afa634c527b3951b50a2962f38fa56743.tar.gz
jenkins: update the jenkins role to use become
sudo is deprecated. This commit updates our jenkins playbook to use the new become method. This is a second patch, as this uses "sudo: true" instead of "sudo: yes." Change-Id: Id31da303cbf96fb62ab9d899273e42927198a354 Reviewed-on: https://review.linaro.org/10626 Reviewed-by: Paul Sokolovsky <paul.sokolovsky@linaro.org> Reviewed-by: Andy Doan <andy.doan+gerrit@linaro.org>
Diffstat (limited to 'per-service')
-rw-r--r--per-service/jenkins/roles/jenkins-config-git/tasks/main.yml3
1 files changed, 0 insertions, 3 deletions
diff --git a/per-service/jenkins/roles/jenkins-config-git/tasks/main.yml b/per-service/jenkins/roles/jenkins-config-git/tasks/main.yml
index c8bd2f1..4c513fa 100644
--- a/per-service/jenkins/roles/jenkins-config-git/tasks/main.yml
+++ b/per-service/jenkins/roles/jenkins-config-git/tasks/main.yml
@@ -26,20 +26,17 @@
- name: Copy config checkout to final destination (if not yet)
shell: cp -a /home/ubuntu/jenkins /var/lib/
- sudo: true
when: checkout_exists.stat.exists == False
tags:
- git
- name: Ensure userContent redirect dir exists
file: dest=/var/lib/jenkins/jobs/_extra/userContent state=directory mode=0775
- sudo: true
tags:
- git
- name: Set correct permissions on config checkout
file: path=/var/lib/jenkins owner=jenkins group=ubuntu state=directory recurse=yes
- sudo: true
when: checkout_exists.stat.exists == False
tags:
- git