Add gitlab group params (#8908)

Add new gitlab_group parameters
This commit is contained in:
Julien Lecomte 2024-10-04 09:10:43 +02:00 committed by GitHub
parent 92df5e8fec
commit e7ccbc2f18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 152 additions and 28 deletions

View file

@ -15,7 +15,7 @@ module: gitlab_project
short_description: Creates/updates/deletes GitLab Projects
description:
- When the project does not exist in GitLab, it will be created.
- When the project does exists and O(state=absent), the project will be deleted.
- When the project does exist and O(state=absent), the project will be deleted.
- When changes are made to the project, the project will be updated.
author:
- Werner Dijkerman (@dj-wasabi)
@ -716,7 +716,7 @@ def main():
if group_identifier:
group = find_group(gitlab_instance, group_identifier)
if group is None:
module.fail_json(msg="Failed to create project: group %s doesn't exists" % group_identifier)
module.fail_json(msg="Failed to create project: group %s doesn't exist" % group_identifier)
namespace_id = group.id
else: