Skip to content
Snippets Groups Projects
Unverified Commit 4e9b80d7 authored by Morre's avatar Morre
Browse files

Add group management

parent 1cdb1fde
No related branches found
No related tags found
No related merge requests found
......@@ -12,3 +12,5 @@ gitlab:
ldap:
enabled: 'false'
servers: {}
groups: []
api_token: ""
......@@ -2,6 +2,7 @@
apt:
pkg: gitlab-ce
- name: copy gitlab.rb
template: src=gitlab.rb.j2 dest=/etc/gitlab/gitlab.rb mode=0600 owner=root group=root
notify:
......@@ -12,3 +13,17 @@
name: gitlab registry cleanup
job: '/opt/gitlab/bin/gitlab-ctl registry-garbage-collect -m 2>/dev/null >/dev/null'
special_time: weekly
- name: install python3-gitlab
apt:
pkg: python3-gitlab
- name: create groups
gitlab_group:
api_url: "{{ gitlab.external_url }}"
api_token: "{{ gitlab.api_token }}"
name: "{{ item.name }}"
parent: "{{ item.parent | default(omit) }}"
visibility: "{{ item.visibility | default(omit) }}"
description: "{{ item.description | default(omit) }}"
with_items: "{{ gitlab.groups }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment