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