You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently are using python-gitlab in several other python scripts and have set it up to use ~/.python-gitlab.cfg as the central source for our credentials (https://python-gitlab.readthedocs.io/en/stable/cli-usage.html#configuration-files). When using the community.general.gitlab_* modules however I have to specify the api_token explicitly. Would it be possible to try and fall back on default python-gitlab.cfg configuration when credentials are not specified?
I'm not sure whether using that config file is a good idea, since python-gitlab can be seen as an implementation detail of the modules. (Though it doesn't look like we'll anytime soon change to another library...)
Something that migth simplyify using the modules is adding a module default group (similar to the community.general.consul and community.general.proxmox ones) that allows to set common parameters (like api_token) once in the playbook, and that will then be used by every gitlab_* module for which api_token isn't explicitly specified.
(Obviously also both supporting that config file and having a module defaults group could be implemented, if the module maintainers think that both are a good idea.)
Summary
We currently are using python-gitlab in several other python scripts and have set it up to use ~/.python-gitlab.cfg as the central source for our credentials (https://python-gitlab.readthedocs.io/en/stable/cli-usage.html#configuration-files). When using the community.general.gitlab_* modules however I have to specify the api_token explicitly. Would it be possible to try and fall back on default python-gitlab.cfg configuration when credentials are not specified?
Issue Type
Feature Idea
Component Name
gitlab_merge_request
Additional Information
Code of Conduct
The text was updated successfully, but these errors were encountered: