]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
do not use backrefs for changing sudoers 241/head
authorAlfredo Deza <adeza@redhat.com>
Tue, 24 Nov 2015 15:15:41 +0000 (10:15 -0500)
committerKen Dreyer <kdreyer@redhat.com>
Tue, 24 Nov 2015 15:41:05 +0000 (08:41 -0700)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/slave.yml

index 088bbfa6196329ba35891bc708bae130fbf767ce..4e64095d4a8a6c42e912d6057025f28ccf35f44d 100644 (file)
     - name: set the authorized keys
       authorized_key: user={{ jenkins_user }} key="{{ lookup('file', 'files/ssh/keys/jenkins_build.pub') }}"
 
-    - name: ensure the build dir exists
+    - name: ensure {{ jenkins_user }} can sudo without a prompt
       sudo: yes
       lineinfile:
         dest: /etc/sudoers
         regexp: '^{{ jenkins_user }} ALL'
         line: '{{ jenkins_user }}   ALL=(ALL:ALL) NOPASSWD:ALL'
-        backrefs: yes
         validate: 'visudo -cf %s'
 
     - name: ensure the build dir exists