Merge branch 'gitlabci' into 'newinfra'
Add gitlab-runner role See merge request nounous/ansible!82certbot_on_virtu
commit
88c2a3a4a3
|
@ -2,4 +2,6 @@
|
||||||
---
|
---
|
||||||
# Deploy Gitlab CI
|
# Deploy Gitlab CI
|
||||||
- hosts: gitlab-ci.adm.crans.org
|
- hosts: gitlab-ci.adm.crans.org
|
||||||
roles: ["docker"]
|
roles:
|
||||||
|
- docker
|
||||||
|
- gitlab-runner
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
---
|
||||||
|
- 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
|
Loading…
Reference in New Issue