Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
Ansible
Commits
c2aee617
Commit
c2aee617
authored
4 years ago
by
me5na7qbjqbrp
Browse files
Options
Downloads
Patches
Plain Diff
Add gitlab-runner role
parent
30658d9b
No related branches found
Branches containing commit
No related tags found
1 merge request
!82
Add gitlab-runner role
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plays/gitlab.yml
+3
-1
3 additions, 1 deletion
plays/gitlab.yml
roles/gitlab-runner/tasks/main.yml
+39
-0
39 additions, 0 deletions
roles/gitlab-runner/tasks/main.yml
with
42 additions
and
1 deletion
plays/gitlab.yml
+
3
−
1
View file @
c2aee617
...
...
@@ -2,4 +2,6 @@
---
# Deploy Gitlab CI
-
hosts
:
gitlab-ci.adm.crans.org
roles
:
[
"
docker"
]
roles
:
-
docker
-
gitlab-runner
This diff is collapsed.
Click to expand it.
roles/gitlab-runner/tasks/main.yml
0 → 100644
+
39
−
0
View file @
c2aee617
---
-
name
:
Install apt-transport-https
apt
:
update_cache
:
true
name
:
-
apt-transport-https
-
ca-certificates
-
curl
-
gnupg2
-
software-properties-common
state
:
present
register
:
apt_result
retries
:
3
until
:
apt_result is succeeded
# Add the key
-
name
:
Configure Gitlab apt key
apt_key
:
url
:
https://packages.gitlab.com/runner/gitlab-runner/gpgkey
id
:
F6403F6544A38863DAA0B6E03F01618A51312F3F
state
:
present
register
:
apt_key_result
retries
:
3
until
:
apt_key_result is succeeded
# Add the repository into source list
-
name
:
Configure Gitlab repository
apt_repository
:
repo
:
deb https://packages.gitlab.com/runner/gitlab-runner/debian/ buster main
state
:
present
-
name
:
Install gitlab-runner
apt
:
update_cache
:
true
name
:
gitlab-runner
state
:
present
register
:
apt_result
retries
:
3
until
:
apt_result is succeeded
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment