Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ansible-modules
gitlab
Commits
4e9b80d7
Unverified
Commit
4e9b80d7
authored
4 years ago
by
Morre
Browse files
Options
Downloads
Patches
Plain Diff
Add group management
parent
1cdb1fde
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
defaults/main.yml
+2
-0
2 additions, 0 deletions
defaults/main.yml
tasks/gitlab.yml
+15
-0
15 additions, 0 deletions
tasks/gitlab.yml
with
17 additions
and
0 deletions
defaults/main.yml
+
2
−
0
View file @
4e9b80d7
...
...
@@ -12,3 +12,5 @@ gitlab:
ldap
:
enabled
:
'
false'
servers
:
{}
groups
:
[]
api_token
:
"
"
This diff is collapsed.
Click to expand it.
tasks/gitlab.yml
+
15
−
0
View file @
4e9b80d7
...
...
@@ -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
}}"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment