Reconfigure gitlab on machine start
This commit is contained in:
parent
c7bde8b3dd
commit
f063af2478
2 changed files with 19 additions and 0 deletions
3
ansible/roles/gitlab/files/gitlab-override.conf
Normal file
3
ansible/roles/gitlab/files/gitlab-override.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Reconfigure GitLab before start. Mostly to ensure log directories exist
|
||||
[Service]
|
||||
ExecStartPre=/usr/bin/gitlab-ctl reconfigure
|
|
@ -2,3 +2,19 @@
|
|||
import_role:
|
||||
name: geerlingguy.gitlab
|
||||
become: true
|
||||
|
||||
- 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
|
||||
|
|
Loading…
Reference in a new issue