Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
infra
ansible-librem
Commits
2d26802e
Commit
2d26802e
authored
Jan 17, 2018
by
Heather Ellsworth
Browse files
Added install of git and sudo. Cloning img repo. Adding jenkins to sudo
parent
7276baf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
install_jenkins.yml
View file @
2d26802e
...
...
@@ -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
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
:
-
name
:
Restart nginx
systemd
:
name=nginx state=restarted
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment