|
@ -80,12 +80,18 @@ |
|
|
- name: Update packages |
|
|
- name: Update packages |
|
|
command: dnf update |
|
|
command: dnf update |
|
|
become: true |
|
|
become: true |
|
|
- name: Allow Jenkins sudo access |
|
|
|
|
|
|
|
|
- name: Allow Jenkins sudo access for devel |
|
|
become: true |
|
|
become: true |
|
|
lineinfile: |
|
|
lineinfile: |
|
|
path: /etc/sudoers |
|
|
path: /etc/sudoers |
|
|
line: 'jenkins ALL=NOPASSWD: /var/lib/jenkins/jobs/TigerOS-Devel/workspace/tigeros/make-iso.sh' |
|
|
line: 'jenkins ALL=NOPASSWD: /var/lib/jenkins/jobs/TigerOS-Devel/workspace/tigeros/make-iso.sh' |
|
|
state: present |
|
|
state: present |
|
|
|
|
|
- name: Allow Jenkins sudo access for master |
|
|
|
|
|
become: true |
|
|
|
|
|
lineinfile: |
|
|
|
|
|
path: /etc/sudoers |
|
|
|
|
|
line: 'jenkins ALL=NOPASSWD: /var/lib/jenkins/jobs/TigerOS-Master/workspace/tigeros/make-iso.sh' |
|
|
|
|
|
state: present |
|
|
- jenkins_job: |
|
|
- jenkins_job: |
|
|
name: TigerOS-Master |
|
|
name: TigerOS-Master |
|
|
state: present |
|
|
state: present |
|
|