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

  1. # see /usr/share/doc/gitlab/README.Debian.gz
  2. # for instruction on how to migrate and reset root password
  3. - name: configure gitlab (fqdn)
  4. debconf:
  5. name: 'gitlab'
  6. question: 'gitlab/fqdn'
  7. vtype: 'string'
  8. value: '{{ fqdn }}'
  9. - include_role:
  10. name: service
  11. vars:
  12. service_name: gitlab
  13. service_packages:
  14. - gitlab
  15. - name: remove debian nginx configuration
  16. file:
  17. path: '/etc/nginx/sites-enabled/{{ fqdn }}'
  18. state: absent
  19. - name: copy my-gitlab.yml
  20. template:
  21. src: "gitlab.yml.j2"
  22. dest: "/etc/gitlab/gitlab.yml"
  23. notify: restart gitlab
  24. - name: patch gitlab source to add domain to email ldap field
  25. blockinfile:
  26. block: |
  27. if key.to_s == "email"
  28. value = value.nil? ? value : value + "@lilik.it"
  29. end
  30. dest: /usr/share/gitlab/lib/gitlab/ldap/auth_hash.rb
  31. insertbefore: "return super unless value"
  32. notify: restart gitlab