community.general.gitlab_group_members – Manage group members on GitLab Server¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.gitlab_group_members
.
New in version 1.2.0: of community.general
Synopsis¶
This module allows to add and remove members to/from a group, or change a member’s access level in a group on GitLab.
Requirements¶
The below requirements are needed on the host that executes this module.
python-gitlab python module <= 1.15.0
administrator rights on the GitLab server
Parameters¶
Examples¶
- name: Add a user to a GitLab Group
community.general.gitlab_group_members:
api_url: 'https://gitlab.example.com'
api_token: 'Your-Private-Token'
gitlab_group: groupname
gitlab_user: username
access_level: developer
state: present
- name: Remove a user from a GitLab Group
community.general.gitlab_group_members:
api_url: 'https://gitlab.example.com'
api_token: 'Your-Private-Token'
gitlab_group: groupname
gitlab_user: username
state: absent
Authors¶
Zainab Alsaffar (@zanssa)