gitlab_group – Creates/updates/deletes Gitlab Groups
gitlab_group – Creates/updates/deletes Gitlab Groups
New in version 2.1.
Synopsis
- When the group does not exist in Gitlab, it will be created.
- When the group does exist and state=absent, the group will be deleted.
- As of Ansible version 2.7, this module make use of a different python module and thus some arguments are deprecated.
Requirements
The below requirements are needed on the host that executes this module.
- python-gitlab python module
Parameters
Parameter | Choices/Defaults | Comments |
---|---|---|
description - added in 2.7 |
Default: null |
A description for the group. |
login_password - |
Default: null |
Gitlab password for login_user |
login_token - |
Default: null |
Gitlab token for logging in. |
login_user - |
Default: null |
Gitlab user name. |
name - / required |
Name of the group you want to create. | |
path - |
Default: null |
The path of the group you want to create, this will be server_url/group_path If not supplied, the group_name will be used. |
server_url - / required |
Url of Gitlab server, with protocol (http or https). | |
state - |
|
create or delete group. Possible values are present and absent. |
validate_certs - |
Default: "yes" |
When using https if SSL certificate needs to be verified.
|
Examples
- name: "Delete Gitlab Group"
local_action:
gitlab_group:
server_url: http://gitlab.dj-wasabi.local
validate_certs: False
login_token: WnUzDsxjy8230-Dy_k
name: my_first_group
state: absent
- name: "Create Gitlab Group"
local_action:
gitlab_group:
server_url: https://gitlab.dj-wasabi.local"
validate_certs: True
login_user: dj-wasabi
login_password: "MySecretPassword"
name: my_first_group
path: my_first_group
state: present
Status
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors
- Werner Dijkerman (@dj-wasabi)
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.7/modules/gitlab_group_module.html