Commit 2d26802e authored by Heather Ellsworth's avatar Heather Ellsworth
Browse files

Added install of git and sudo. Cloning img repo. Adding jenkins to sudo

parent 7276baf7
...@@ -55,6 +55,31 @@ ...@@ -55,6 +55,31 @@
systemd: name=nginx state=started enabled=yes systemd: name=nginx state=started enabled=yes
- name: Install git - name: Install git
apt: name=git state=present apt: name=git state=present
- name: Install sudo
apt: name=sudo state=present
- name: Clone the debian_qemuscripts repo
git:
repo: 'https://code.puri.sm/Librem5/debian_qemuscripts.git'
dest: /var/lib/jenkins/debian_qemuscripts
clone: yes
- name: chown -R jenkins:jenkins /var/lib/jenkins/debian_qemuscripts
file:
path: /var/lib/jenkins/debian_qemuscripts
recurse: yes
owner: jenkins
group: jenkins
- name: Allow passwordless sudo
lineinfile:
dest: /etc/sudoers
regexp: '^%sudo'
line: '%sudo ALL=(ALL) NOPASSWD: ALL'
validate: 'visudo -cf %s'
- name: Add jenkins to sudoers group
user: name=jenkins groups=sudo append=yes state=present
- name: sudoers file
command: cat /etc/sudoers
register: file
- debug: msg="{{ file.stdout }}"
handlers: handlers:
- name: Restart nginx - name: Restart nginx
systemd: name=nginx state=restarted systemd: name=nginx state=restarted
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment