[gitlab] Install gitlab

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-01-28 15:25:23 +01:00
parent f07bb8b749
commit 73a6b5afb4
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 22 additions and 0 deletions

View File

@ -1,4 +1,22 @@
--- ---
- name: Configure Gitlab repository
template:
src: apt/sources.list.d/gitlab_gitlab-ce.list.j2
dest: /etc/apt/sources.list.d/gitlab_gitlab-ce.list
mode: 0644
owner: root
group: root
- name: Install Gitlab
apt:
update_cache: true
install_recommends: false
name:
- gitlab-ce
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Add Gitlab configuration - name: Add Gitlab configuration
template: template:
src: gitlab.rb.j2 src: gitlab.rb.j2

View File

@ -0,0 +1,4 @@
{{ ansible_header | comment }}
deb https://packages.gitlab.com/gitlab/gitlab-ce/debian/ {{ ansible_distribution_release }} main
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/debian/ {{ ansible_distribution_release }} main