add gitlab role

This commit is contained in:
aaron
2021-08-24 12:16:11 +02:00
commit 80cf4f9a51
11 changed files with 419 additions and 0 deletions

13
handlers/main.yml Normal file
View File

@@ -0,0 +1,13 @@
---
# vim: ts=2 sw=2 et ft=yaml.ansible
- name: reconfigure gitlab
shell: "gitlab-ctl reconfigure > /dev/null 2>&1"
notify: restart gitlab
register: gitlab_restart
failed_when: "gitlab_restart.rc > 2"
- name: restart gitlab
service:
name: gitlab-runsvdir.service
state: restarted