|
|
|
@ -16,7 +16,7 @@ DOCUMENTATION = '''
|
|
|
|
module: gitlab_project
|
|
|
|
module: gitlab_project
|
|
|
|
short_description: Creates/updates/deletes Gitlab Projects
|
|
|
|
short_description: Creates/updates/deletes Gitlab Projects
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- When the project does not exists in Gitlab, it will be created.
|
|
|
|
- When the project does not exist in Gitlab, it will be created.
|
|
|
|
- When the project does exists and state=absent, the project will be deleted.
|
|
|
|
- When the project does exists and state=absent, the project will be deleted.
|
|
|
|
- When changes are made to the project, the project will be updated.
|
|
|
|
- When changes are made to the project, the project will be updated.
|
|
|
|
version_added: "2.1"
|
|
|
|
version_added: "2.1"
|
|
|
|
@ -392,7 +392,7 @@ def main():
|
|
|
|
module.exit_json(changed=True, result="Successfully deleted project %s" % project_name)
|
|
|
|
module.exit_json(changed=True, result="Successfully deleted project %s" % project_name)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
if state == "absent":
|
|
|
|
if state == "absent":
|
|
|
|
module.exit_json(changed=False, result="Project deleted or does not exists")
|
|
|
|
module.exit_json(changed=False, result="Project deleted or does not exist")
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
if project.createOrUpdateProject(project_exists, group_name, import_url, arguments):
|
|
|
|
if project.createOrUpdateProject(project_exists, group_name, import_url, arguments):
|
|
|
|
module.exit_json(changed=True, result="Successfully created or updated the project %s" % project_name)
|
|
|
|
module.exit_json(changed=True, result="Successfully created or updated the project %s" % project_name)
|
|
|
|
|