diff --git a/lib/ansible/modules/extras/source_control/gitlab_project.py b/lib/ansible/modules/extras/source_control/gitlab_project.py index 602b9e832d..4f016bc123 100644 --- a/lib/ansible/modules/extras/source_control/gitlab_project.py +++ b/lib/ansible/modules/extras/source_control/gitlab_project.py @@ -357,7 +357,7 @@ def main(): # or with login_token try: if use_credentials: - git = gitlab.Gitlab(host=server_url) + git = gitlab.Gitlab(host=server_url, verify_ssl=verify_ssl) git.login(user=login_user, password=login_password) else: git = gitlab.Gitlab(server_url, token=login_token, verify_ssl=verify_ssl)