commit message from python script
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
gitlab_folder: ".gitlab2"
|
||||
gitlab_dir:
|
||||
- "/home/{{ansible_user}}/.gitlab2"
|
||||
- "/home/{{ansible_user}}/.gitlab2/config"
|
||||
- "/home/{{ansible_user}}/.gitlab2/log"
|
||||
- "/home/{{ansible_user}}/.gitlab2/data"
|
||||
- "/home/{{ansible_user}}/.gitlab2/config/ssl"
|
||||
- "/home/{{ansible_user}}/{{gitlab_folder}}"
|
||||
- "/home/{{ansible_user}}/{{gitlab_folder}}/config"
|
||||
- "/home/{{ansible_user}}/{{gitlab_folder}}/log"
|
||||
- "/home/{{ansible_user}}/{{gitlab_folder}}/data"
|
||||
- "/home/{{ansible_user}}/{{gitlab_folder}}/config/ssl"
|
||||
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
---
|
||||
- name:
|
||||
shell: "hostnamectl hostname"
|
||||
register: var_gitlab_hostname
|
||||
|
||||
- name: Set fact for gitlab_hostname
|
||||
set_fact:
|
||||
gitlab_hostname: "{{ var_gitlab_hostname.stdout }}"
|
||||
|
||||
- name: Template Docker compose
|
||||
template:
|
||||
src: docker-compose.yml.j2
|
||||
|
||||
@@ -8,13 +8,16 @@ services:
|
||||
environment:
|
||||
GITLAB_OMNIBUS_CONFIG: |
|
||||
gitlab_rails['time_zone'] = 'Europe/Berlin'
|
||||
external_url 'https://{{ansible_host}}'
|
||||
external_url 'https://{{gitlab_hostname}}'
|
||||
gitlab_rails['gitlab_shell_ssh_port'] = {{ssh_port}}
|
||||
nginx['listen_port'] = 443
|
||||
nginx['redirect_http_to_https'] = true
|
||||
nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.cer"
|
||||
nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.key"
|
||||
nginx['ssl_protocols'] = "TLSv1.1 TLSv1.2"
|
||||
registry_external_url = 'https://registry.{{gitlab_hostname}}'
|
||||
registry['registry_http_addr'] = "0.0.0.0:5000"
|
||||
registry_nginx['enable'] = false
|
||||
ports:
|
||||
- '{{http_ssl}}:443'
|
||||
- '{{ssh_port}}:22'
|
||||
|
||||
Reference in New Issue
Block a user