ansible-role-gitlab/templates/gitlab.rb.j2
2020-04-11 15:18:47 +02:00

20 lines
490 B
Django/Jinja

# {{ ansible_managed }}
external_url '{{ gitlab_url }}'
git_data_dirs({
"default" => {
"path" => "{{ gitlab_data_dir }}"
}
})
{% for module, options in gitlab_config.items() %}
{% for option, value in options.items() %}
{{ module }}['{{ option }}'] = {% if value is sameas true %}true
{% elif value is sameas false %}false
{% elif value is string %}'{{ value }}'
{% elif value is number %}{{ value }}
{% else %}['{{ value|join("', '") }}']
{% endif %}
{% endfor %}
{% endfor %}