From: Alfredo Deza Date: Tue, 24 Nov 2015 15:15:41 +0000 (-0500) Subject: do not use backrefs for changing sudoers X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=95b79a61b6676293cf0ff7ccbe9c041b44be73e0;p=ceph-build.git do not use backrefs for changing sudoers Signed-off-by: Alfredo Deza --- diff --git a/ansible/slave.yml b/ansible/slave.yml index 088bbfa6..4e64095d 100644 --- a/ansible/slave.yml +++ b/ansible/slave.yml @@ -16,13 +16,12 @@ - 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