From 560c0e569f833f5548a49ff36c6e8fcd68789d00 Mon Sep 17 00:00:00 2001 From: Christian Martin <25327135+ct-martin@users.noreply.github.com> Date: Fri, 20 Oct 2017 15:09:29 -0400 Subject: [PATCH] Give Jenkins sudo access (Ansible playbook) (This is to start with, will move to ci script later) --- build-scripts/playbook.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build-scripts/playbook.yml b/build-scripts/playbook.yml index e130baa..dcf04ee 100644 --- a/build-scripts/playbook.yml +++ b/build-scripts/playbook.yml @@ -80,3 +80,8 @@ - name: Update packages command: dnf update become: true + - name: Allow Jenkins sudo access + become: true + lineinfile: /etc/sudoers + line: 'jenkins ALL=NOPASSWD: /var/lib/jenkins/jobs/TigerOS Devel/workspace/tigeros/make-iso.sh' + state: present