feat: add gitlab_pages_url variable

This commit is contained in:
Adrien Waksberg 2021-08-24 08:03:45 +02:00
parent b6600b4d77
commit c821b91dd9
3 changed files with 6 additions and 2 deletions

View file

@ -8,6 +8,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
### Added
- feat: add gitlab_data_dir variable
- feat: add gitlab_pages_url variable
## [v1.0.0] - 2020-04-11

View file

@ -12,7 +12,8 @@ Install and configure a Gitlab server
## Role variables
- `gitlab_url` - set the gitlab url (default: `http://gitlab.example.com`)
- `gitlab_url` - set the gitlab url
- `gitlab_pages_url` - set the gitlab pages url
- `gitlab_data_dir` - set the path for repository
- `gitlab_config` - set the config

View file

@ -1,8 +1,10 @@
# {{ ansible_managed }}
external_url '{{ gitlab_url }}'
{% if gitlab_pages_url is defined %}
pages_external_url '{{ gitlab_pages_url }}'
{% endif %}
{% if gitlab_data_dir is defined %}
git_data_dirs({
"default" => {
"path" => "{{ gitlab_data_dir }}"