infrastructure/ansible/roles/gitlab/tasks/main.yml

29 lines
682 B
YAML
Raw Normal View History

- name: Install and configure GitLab
import_role:
name: geerlingguy.gitlab
become: true
2021-05-29 11:21:20 +01:00
- name: Create dir for service override
file:
path: /usr/lib/systemd/system/gitlab-runsvdir.service.d/
state: directory
mode: "0755"
become: true
- name: Create override.conf
copy:
src: files/gitlab-override.conf
dest: /usr/lib/systemd/system/gitlab-runsvdir.service.d/gitlab-override.conf
owner: root
group: root
mode: "0644"
become: true
# https://theorangeone.net/posts/gitlab-dater/
- name: Install gitlab-dater
git:
repo: https://git.theorangeone.net/sys/gitlab-dater
dest: "{{ home }}/gitlab-dater"
depth: 1
become: true