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 @@
systemd: name=nginx state=started enabled=yes
- name: Install git
apt: name=git state=present
- name: Install sudo
apt: name=sudo state=present
- name: Clone the debian_qemuscripts repo
repo: ''
dest: /var/lib/jenkins/debian_qemuscripts
clone: yes
- name: chown -R jenkins:jenkins /var/lib/jenkins/debian_qemuscripts
path: /var/lib/jenkins/debian_qemuscripts
recurse: yes
owner: jenkins
group: jenkins
- name: Allow passwordless sudo
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 }}"
- name: Restart nginx
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