Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

37 lines
920 B

# see /usr/share/doc/gitlab/README.Debian.gz
# for instruction on how to migrate and reset root password
- name: configure gitlab (fqdn)
debconf:
name: 'gitlab'
question: 'gitlab/fqdn'
vtype: 'string'
value: '{{ fqdn }}'
- include_role:
name: service
vars:
service_name: gitlab
service_packages:
- gitlab
- name: remove debian nginx configuration
file:
path: '/etc/nginx/sites-enabled/{{ fqdn }}'
state: absent
- name: copy my-gitlab.yml
template:
src: "gitlab.yml.j2"
dest: "/etc/gitlab/gitlab.yml"
notify: restart gitlab
- name: patch gitlab source to add domain to email ldap field
blockinfile:
block: |
if key.to_s == "email"
value = value.nil? ? value : value + "@lilik.it"
end
dest: /usr/share/gitlab/lib/gitlab/ldap/auth_hash.rb
insertbefore: "return super unless value"
notify: restart gitlab